Class: Fog::Compute::Libvirt::Interface

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/libvirt/models/compute/interface.rb

Instance Method Summary collapse

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/fog/libvirt/models/compute/interface.rb', line 19

def active?
  active
end

#saveObject

Raises:

  • (Fog::Errors::Error)


11
12
13
# File 'lib/fog/libvirt/models/compute/interface.rb', line 11

def save
  raise Fog::Errors::Error.new('Creating a new interface is not yet implemented. Contributions welcome!')
end

#shutdownObject



15
16
17
# File 'lib/fog/libvirt/models/compute/interface.rb', line 15

def shutdown
  service.destroy_interface(mac)
end