def detach(self, interface): if self.up: utils.check_cmd([ constants.OVS_BIN, "del-port", self.bridge_name, interface.localname ]) CoreNetworkBase.detach(self, interface)
def detach(self, netif): """ Detach a network interface. :param core.nodes.interface.Veth netif: network interface to detach :return: nothing """ if self.up: self.net_client.delete_interface(self.brname, netif.localname) CoreNetworkBase.detach(self, netif)
def detach(self, netif): """ Detach a network interface. :param core.nodes.interface.Veth netif: network interface to detach :return: nothing """ if self.up: utils.check_cmd([constants.BRCTL_BIN, "delif", self.brname, netif.localname]) CoreNetworkBase.detach(self, netif)