Sha256: e197c2617e4a7daff0cc1cdb49771d7c30e30b788976adf3bd44e3214a20135d

Contents?: true

Size: 650 Bytes

Versions: 12

Compression:

Stored size: 650 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class OpenNebula
      class Interface < Fog::Model

        identity :id
        attribute :vnet
        attribute :model
        attribute :name
        attribute :mac

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

        def persisted?
          mac
        end

        def destroy
          raise Fog::Errors::Error.new('Destroying an interface is not yet implemented. Contributions welcome!')
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
nsidc-fog-1.24.1 lib/fog/opennebula/models/compute/interface.rb
fog-1.24.0 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.11 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.10 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.9 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.8 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.7 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.6 lib/fog/opennebula/models/compute/interface.rb
fog-1.23.0 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.4 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.3 lib/fog/opennebula/models/compute/interface.rb
ns-fog-1.22.2 lib/fog/opennebula/models/compute/interface.rb