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

addons: vrf: down the slave after unslaving during down

Ticket: CM-10050
Reviewed By:
Testing Done: tested with bridge testcase described in the bug
This commit is contained in:
Roopa Prabhu
2016-03-23 23:51:11 -07:00
parent 892c495ea8
commit f825610ec6

View File

@ -571,6 +571,7 @@ class vrf(moduleBase):
def _down_vrf_slave(self, ifacename, vrf):
try:
self.ipcmd.link_set(ifacename, 'nomaster')
rtnetlink_api.rtnl_api.link_set(ifacename, "down")
except Exception, e:
self.logger.warn('%s: %s' %(ifacename, str(e)))