Sha256: 88c19f1d96699809c08e439698d75e95a8d953905025ec8bab31ce9ceb487d9e

Contents?: true

Size: 617 Bytes

Versions: 14

Compression:

Stored size: 617 Bytes

Contents

require 'fog/core/model'
require 'fog/libvirt/models/compute/util/util'

module Fog
  module Compute
    class Libvirt

      class Network < Fog::Model

        include Fog::Compute::LibvirtUtil

        identity :uuid
        attribute :name
        attribute :bridge_name
        attribute :xml

        def initialize(attributes = {})
          super
        end

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

        def shutdown
          connection.destroy_network(uuid)
        end

      end

    end
  end

end

Version data entries

14 entries across 14 versions & 8 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/libvirt/models/compute/network.rb
fog-nirvanix-1.8.1 lib/fog/libvirt/models/compute/network.rb
fog-parser-fix-1.6.1 lib/fog/libvirt/models/compute/network.rb
fog-test-again-1.6.0 lib/fog/libvirt/models/compute/network.rb
fog-parser-fix-1.6.0 lib/fog/libvirt/models/compute/network.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/libvirt/models/compute/network.rb
fog-sgonyea-1.8.1 lib/fog/libvirt/models/compute/network.rb
fog-1.8.0 lib/fog/libvirt/models/compute/network.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/libvirt/models/compute/network.rb
fog-1.7.0 lib/fog/libvirt/models/compute/network.rb
fog-1.6.0 lib/fog/libvirt/models/compute/network.rb
fog-1.5.0 lib/fog/libvirt/models/compute/network.rb
fog-1.4.0 lib/fog/libvirt/models/compute/network.rb
michiels-fog-1.3.1 lib/fog/libvirt/models/compute/network.rb