'Unplug the interface.'

def unplug(self, device_name, bridge=None, namespace=None, prefix=None):

    tap_name = self._get_tap_name(device_name, prefix)
    try:
        cmd = ['ivs-ctl', 'del-port', tap_name]
        utils.execute(cmd, run_as_root=True)
        device = ip_lib.IPDevice(device_name, namespace=namespace)
        device.link.delete()
        LOG.debug("Unplugged    interface    '%s'", device_name)
    except RuntimeError:
        LOG.error(_LE("Failed    unplugging    interface    '%s'"), device_name)
