aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2015-09-03 18:16:09 +0100
committerSteve McIntyre <steve.mcintyre@linaro.org>2015-09-03 18:16:09 +0100
commitee742d9d8a7d9b963d4d0eb1b721993d2a26a38c (patch)
treea0278ddf827b6e306424d0bb2fd62b5bd0345ffe /util.py
parent36ae6ac2bf0006a9522b4820ac12cde87f9a27f7 (diff)
Compare the default_vlan_tag to vlan.tag
Previous fix was buggy and rushed. Change-Id: Ied61a46973135908e26ce8324c06a51fa64dcfa9
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 e537256..271ee88 100644
--- a/util.py
+++ b/util.py
@@ -505,7 +505,7 @@ class VlanUtil:
else:
vlans = db.all_vlans()
for vlan in vlans:
- if vlan != state.config.vland.default_vlan_tag:
+ if vlan.tag != state.config.vland.default_vlan_tag:
s.port_add_trunk_to_vlan(port.name, vlan.tag)
except IOError: