diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-02-13 03:06:01 +0000 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-02-13 03:06:01 +0000 |
commit | 3bb7bbd91e98999740a42f582ffb7c46722c84cb (patch) | |
tree | fdb6c8f050428b6b35420f139b750d6078254d5e /util.py | |
parent | 2811409f1d067080c0a6f3b4d3161b7b3f63390d (diff) |
Check locking first on set_current_vlan
Change-Id: Ib431d4858c24e1cd90248b9afc1fd1ebb482828c
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -517,10 +517,10 @@ class VlanUtil: port = db.get_port_by_id(port_id) if port is None: raise InputError("Port ID %d does not exist" % port_id) - if port.is_trunk: - raise InputError("Port ID %d is not an access port" % port_id) if port.is_locked: raise InputError("Port ID %d is locked" % port_id) + if port.is_trunk: + raise InputError("Port ID %d is not an access port" % port_id) vlan = db.get_vlan_by_id(vlan_id) if vlan is None: |