'Unplug the interface.'

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

    if (not bridge):
        bridge = self.conf.ovs_integration_bridge
    tap_name = self._get_tap_name(device_name, prefix)
    self.check_bridge_exists(bridge)
    ovs = ovs_lib.OVSBridge(bridge)
    try:
        ovs.delete_port(tap_name)
        if self.conf.ovs_use_veth:
            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)
