From 421e1f0c7dd01afa1ee66bdbe236c9948d911954 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Fri, 23 Oct 2026 17:12:00 +0100 Subject: [PATCH] The state of the tagged/untagged ports in the vlan is complete with every command, so we need to start from empty each time --- tools/httpd_sim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/httpd_sim.py b/tools/httpd_sim.py index 190e7e02..f042f4d6 100755 --- a/tools/httpd_sim.py +++ b/tools/httpd_sim.py @@ -329,6 +329,9 @@ class Handler(SimpleHTTPRequestHandler): else: state["vlans"][vid]["name"] = name + state["vlans"][vid]["tagged"] = [] + state["vlans"][vid]["untagged"] = [] + for i in pieces[startIndex:]: if i[-1] == "t": state["vlans"][vid]["tagged"].append(phys_to_log_port[int(i[:-1])-1])