Esempio n. 1
0
    def unplug(self, vif):
        """Unplug Contrail's network port

        Unbind the vif from a Contrail virtual port.
        """
        dev = vif.devname
        cmd_args = "--oper=delete --uuid=%s" % vif.id
        processutils.execute('sudo', 'vrouter-port-control', cmd_args)
        linux_net.delete_net_dev(dev)
Esempio n. 2
0
    def unplug(self, vif):
        """Unplug from MidoNet network port

        Unbind the vif from a MidoNet virtual port.
        """
        dev = vif.devname
        port_id = vif.id
        processutils.execute("sudo", "mm-ctl", "--unbind-port", port_id)
        linux_net.delete_net_dev(dev)
Esempio n. 3
0
    def unplug(self, vif):
        """Unplug from MidoNet network port

        Unbind the vif from a MidoNet virtual port.
        """
        dev = vif.devname
        port_id = vif.id
        processutils.execute('sudo', 'mm-ctl', '--unbind-port', port_id)
        linux_net.delete_net_dev(dev)
Esempio n. 4
0
    def unplug(self, vif):
        """Unplug Contrail's network port

        Unbind the vif from a Contrail virtual port.
        """
        dev = vif.devname
        cmd_args = "--oper=delete --uuid=%s" % vif.id
        processutils.execute('sudo', 'vrouter-port-control', cmd_args)
        linux_net.delete_net_dev(dev)
Esempio n. 5
0
    def unplug(self, vif):
        """Unplug using PLUMgrid IO Visor Driver

        Delete network device and to their respective
        connection to the Virtual Domain in PLUMgrid Platform.
        """
        iface_id = vif.id
        dev = vif.devname
        processutils.execute('sudo', 'ifc_ctl', 'gateway', 'ifdown', dev,
                             'access_vm', vif.network.label + "_" + iface_id,
                             vif.address)
        processutils.execute('sudo', 'ifc_ctl', 'gateway', 'del_port', dev)

        linux_net.delete_net_dev(dev)
Esempio n. 6
0
    def unplug(self, vif):
        """Unplug using PLUMgrid IO Visor Driver

        Delete network device and to their respective
        connection to the Virtual Domain in PLUMgrid Platform.
        """
        iface_id = vif.id
        dev = vif.devname
        processutils.execute('sudo', 'ifc_ctl', 'gateway', 'ifdown',
                      dev, 'access_vm',
                      vif.network.label + "_" + iface_id,
                      vif.address)
        processutils.execute('sudo', 'ifc_ctl', 'gateway', 'del_port', dev)
                      
        linux_net.delete_net_dev(dev)