aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2015-02-11 17:13:50 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2015-02-11 17:13:50 +0000
commitd7fb40791205317549fc62c30e47b2b59697e845 (patch)
treefda857115538d2df6c5177d77fc5564461e371c9 /util.py
parenta8fe1deeb0afe017ff114c4768c56d85e7fd37d2 (diff)
Bugfix - track the right list of VLANs for the switch
Change-Id: Idf1207a4460b4cfb114d4ca811ecf43742c49a9a
Diffstat (limited to 'util.py')
-rw-r--r--util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.py b/util.py
index f3bb99c..953bd71 100644
--- a/util.py
+++ b/util.py
@@ -747,7 +747,7 @@ class VlanUtil:
# Make sure this switch has all the VLANs we need
for vlan in db.all_vlans():
if vlan.tag is not state.config.vland.default_vlan_tag:
- if not vlan.tag in new_vlan_tags:
+ if not vlan.tag in vlan_tags:
print "Adding VLAN tag %d to this switch" % (vlan.tag)
s.vlan_create(vlan.tag)
s.vlan_set_name(vlan.tag, vlan.name)