# remove old routes from an e.g. old VRF assignment if 'shutdown_required': vrf = None tmp = get_interface_config(self.ifname) if 'master' in tmp: vrf = tmp['master'] self._remove_routes(vrf)
while in bond.py
if 'shutdown_required' in config: self.set_admin_state('down')