mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-11-01 18:04:12 +08:00
The state of the tagged/untagged ports in the vlan is complete with
every command, so we need to start from empty each time
This commit is contained in:
1 parent
813d7e7ae2
commit
421e1f0c7d
1 file changed
+3
@@ -329,6 +329,9 @@ class Handler(SimpleHTTPRequestHandler):
|
|||||||
else:
|
else:
|
||||||
state["vlans"][vid]["name"] = name
|
state["vlans"][vid]["name"] = name
|
||||||
|
|
||||||
|
state["vlans"][vid]["tagged"] = []
|
||||||
|
state["vlans"][vid]["untagged"] = []
|
||||||
|
|
||||||
for i in pieces[startIndex:]:
|
for i in pieces[startIndex:]:
|
||||||
if i[-1] == "t":
|
if i[-1] == "t":
|
||||||
state["vlans"][vid]["tagged"].append(phys_to_log_port[int(i[:-1])-1])
|
state["vlans"][vid]["tagged"].append(phys_to_log_port[int(i[:-1])-1])
|
||||||
|
|||||||
Reference in new issue
Block a user