Sha256: 16d3ff4efc25a5a3357b3d4a4520131e85b6a24ca5ce1af2b5c5a0a897363aec

Contents?: true

Size: 1.25 KB

Versions: 13

Compression:

Stored size: 1.25 KB

Contents

require 'fog/core/model'

module Fog
  module Compute
    class XenServer
    
      class PIF < Fog::Model
        # API Reference here:
        # http://docs.vmd.citrix.com/XenServer/5.6.0/1.0/en_gb/api/?c=PIF
        
        identity :reference
        
        attribute :uuid
        attribute :physical
        attribute :mac,                     :aliases => :MAC
        attribute :currently_attached
        attribute :device
        attribute :device_name
        attribute :metrics
        attribute :dns,                     :aliases => :DNS
        attribute :gateway
        attribute :ip,                      :aliases => :IP
        attribute :ip_configuration_mode    
        attribute :mtu,                     :aliases => :MTU
        attribute :__network,               :aliases => :network
        attribute :netmask
        attribute :status_code
        attribute :status_detail
        attribute :management
        attribute :vlan,                    :aliases => :VLAN
        attribute :other_config
        attribute :__host,                  :aliases => :host
        
        def network
          connection.networks.get __network
        end

        def host
          connection.hosts.get __host
        end
      
      end
      
    end
  end
end

Version data entries

13 entries across 13 versions & 7 rubygems

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