1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Fix mstpctl port attribute ifquery check

Ticket: CM-3346
Reviewed By:
Testing Done: Tested ifquery check mstpctl attributes on bridge port
This commit is contained in:
Roopa Prabhu
2014-11-04 11:31:30 -08:00
parent 3eee421aca
commit 19f90a917a

View File

@@ -585,12 +585,12 @@ class mstpctl(moduleBase):
ifaceobjcurr.update_config_with_status(k, rv, 0)
def _query_check_bridge_port(self, ifaceobj, ifaceobjcurr):
if not self.ipcmd.link_exists():
if not self.ipcmd.link_exists(ifaceobj.name):
self.logger.debug('bridge port %s does not exist' %ifaceobj.name)
ifaceobjcurr.status = ifaceStatus.NOTFOUND
return
# Check if this is a bridge port
if not self._is_bridge_port(ifaceobj.name):
if not self._is_bridge_port(ifaceobj):
# mark all the bridge attributes as error
ifaceobj.check_n_update_config_with_status_many(
self._port_attrs_map.keys(), 0)