'Detach an network adapter from an instance.'

@check_instance_lock
@check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.PAUSED, vm_states.STOPPED], task_state=[None])
def detach_interface(self, context, instance, port_id):

    self.compute_rpcapi.detach_interface(context, instance=instance, port_id=port_id)
