Class: Fog::Compute::Libvirt::Network

Inherits:
Model
  • Object
show all
Includes:
Fog::Compute::LibvirtUtil
Defined in:
lib/fog/libvirt/models/compute/network.rb

Instance Method Summary collapse

Methods included from Fog::Compute::LibvirtUtil

#randomized_name, #to_xml, #xml_element, #xml_elements

Constructor Details

#initialize(attributes = {}) ⇒ Network

Returns a new instance of Network.



17
18
19
# File 'lib/fog/libvirt/models/compute/network.rb', line 17

def initialize(attributes = {})
  super
end

Instance Method Details

#saveObject

Raises:

  • (Fog::Errors::Error)


21
22
23
# File 'lib/fog/libvirt/models/compute/network.rb', line 21

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

#shutdownObject



25
26
27
# File 'lib/fog/libvirt/models/compute/network.rb', line 25

def shutdown
  service.destroy_network(uuid)
end