'Unplug the interface.'

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

    device = ip_lib.IPDevice(device_name, namespace=namespace)
    try:
        device.link.delete()
        LOG.debug("Unplugged    interface    '%s'", device_name)
    except RuntimeError:
        LOG.error(_LE("Failed    unplugging    interface    '%s'"), device_name)
