Sha256: f98c5c068d3bb414a520f561eac8a3726b86ecfda1d5c4335b449ee1b29a4777

Contents?: true

Size: 476 Bytes

Versions: 14

Compression:

Stored size: 476 Bytes

Contents

require 'fog/core/model'

module Fog
  module Libvirt
    class Compute
      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
          service.destroy_interface(mac)
        end

        def active?
          active
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
fog-libvirt-0.13.2 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.13.1 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.13.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.12.2 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.12.1 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.12.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.11.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.10.1 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.10.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-csem-0.9.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.9.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.8.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.7.0 lib/fog/libvirt/models/compute/interface.rb
fog-libvirt-0.6.0 lib/fog/libvirt/models/compute/interface.rb