diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-07-24 16:17:23 +0100 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-07-24 16:17:23 +0100 |
commit | 49d3c0833950efd3cf4bb0f270bd0bf9665797fe (patch) | |
tree | 905489ae0f88cccd358ba35f474dddb3c1d76d72 /util.py | |
parent | c19c7bfc5715188848265f6c767201d2babde4fc (diff) |
More "is not" --> != fixes
Change-Id: I18331ce5ec118b3aa3dc9a040771350221217f45
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -753,7 +753,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 vlan.tag != state.config.vland.default_vlan_tag: if not vlan.tag in vlan_tags: logging.debug("Adding VLAN tag %d to this switch", vlan.tag) s.vlan_create(vlan.tag) @@ -766,7 +766,7 @@ class VlanUtil: port = db.get_port_by_id(port_id) for vlan in db.all_vlans(): - if vlan.vlan_id is not state.default_vlan_id: + if vlan.vlan_id != state.default_vlan_id: if not vlan.tag in port_vlans[port.name]: logging.debug("Adding allowed VLAN tag %d to trunk port %s", vlan.tag, port.name) s.port_add_trunk_to_vlan(port.name, vlan.tag) |