Sha256: 5f70343037729b56fc509949b602c2ec317cb063adf92624896b033df2a09acb

Contents?: true

Size: 482 Bytes

Versions: 14

Compression:

Stored size: 482 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class Libvirt

      class Interface < Fog::Model

        identity :name
        attribute :mac
        attribute :active

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

        def shutdown
          connection.destroy_interface(mac)
        end

        def active?
          active
        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/interface.rb
fog-nirvanix-1.8.1 lib/fog/libvirt/models/compute/interface.rb
fog-parser-fix-1.6.1 lib/fog/libvirt/models/compute/interface.rb
fog-test-again-1.6.0 lib/fog/libvirt/models/compute/interface.rb
fog-parser-fix-1.6.0 lib/fog/libvirt/models/compute/interface.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/libvirt/models/compute/interface.rb
fog-sgonyea-1.8.1 lib/fog/libvirt/models/compute/interface.rb
fog-1.8.0 lib/fog/libvirt/models/compute/interface.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/libvirt/models/compute/interface.rb
fog-1.7.0 lib/fog/libvirt/models/compute/interface.rb
fog-1.6.0 lib/fog/libvirt/models/compute/interface.rb
fog-1.5.0 lib/fog/libvirt/models/compute/interface.rb
fog-1.4.0 lib/fog/libvirt/models/compute/interface.rb
michiels-fog-1.3.1 lib/fog/libvirt/models/compute/interface.rb