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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user