Esempio n. 1
0
    def detach(self, interface):
        if self.up:
            utils.check_cmd([
                constants.OVS_BIN, "del-port", self.bridge_name,
                interface.localname
            ])

        CoreNetworkBase.detach(self, interface)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)