Method: Libvirt::NodeDevice#dettach

Defined in:
lib/libvirt/node_device.rb

#dettachBoolean

Detaches the device from the node itself so that it may be bound to a guest domain.

Returns:

  • (Boolean)


32
33
34
# File 'lib/libvirt/node_device.rb', line 32

def dettach
  FFI::Libvirt.virNodeDeviceDettach(self) == 0
end