예제 #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)
예제 #2
0
파일: network.py 프로젝트: sorianoas/core
    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)
예제 #3
0
파일: network.py 프로젝트: lmerat46/core
    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)