'Unplug using PLUMgrid IO Visor Driver
Delete network device and to their respective
connection to the Virtual Domain in PLUMgrid Platform.'

def unplug_iovisor(self, instance, vif):

    dev = self.get_vif_devname(vif)
    try:
        utils.execute('ifc_ctl', 'gateway', 'ifdown', dev, run_as_root=True)
        utils.execute('ifc_ctl', 'gateway', 'del_port', dev, run_as_root=True)
        linux_net.delete_net_dev(dev)
    except processutils.ProcessExecutionError:
        LOG.exception(_('Failed    while    unplugging    vif'), instance=instance)
