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

Multiple fixes and cleanup

Ticket: CM-3346
Reviewed By:
Testing Done: Tested ifupdown2 sanity

- moved 'admin up' delays that we introduced recently to be
configurable via two ifupdown2.conf attributes
    # Let link master (bridges, bonds) own the link state of slaves
    link_master_slave=1

    # Delay admin state change till the end
    delay_admin_state_change=0

- reduced some redundant traversal of dependency trees

- fixed a few bugs in query check
This commit is contained in:
Roopa Prabhu
2014-12-17 12:39:38 -08:00
parent caac3e369d
commit a070c90ec3
10 changed files with 126 additions and 49 deletions

View File

@ -595,7 +595,7 @@ class mstpctl(moduleBase):
# Check if this is a bridge port
if not self._is_bridge_port(ifaceobj):
# mark all the bridge attributes as error
ifaceobj.check_n_update_config_with_status_many(
ifaceobjcurr.check_n_update_config_with_status_many(ifaceobj,
self._port_attrs_map.keys(), 0)
return
bridgename = self.ipcmd.bridge_port_get_bridge_name(ifaceobj.name)