Sha256: 52c4de8545adfdd563367a21cf066563474bf92c9f4de7f49f60f63ac8ee18c8

Contents?: true

Size: 1.9 KB

Versions: 21

Compression:

Stored size: 1.9 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/6.2.0/1.0/en_gb/api/?c=PIF

        identity :reference

        attribute :uuid
        attribute :__bond_master_of,            :aliases => :bond_master_of
        attribute :__bond_slave_of,             :aliases => :bond_slave_of
        attribute :disallow_unplug
        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 :ipv6,                        :aliases => :IPv6
        attribute :ipv6_configuration_mode
        attribute :ipv6_gateway
        attribute :mtu,                         :aliases => :MTU
        attribute :__network,                   :aliases => :network
        attribute :netmask
        attribute :status_code
        attribute :status_detail
        attribute :management
        attribute :primary_address_type
        attribute :__tunnel_access_pif_of,      :aliases => :tunnel_access_PIF_of
        attribute :__tunnel_transport_pif_of,   :aliases => :tunnel_transport_PIF_of
        attribute :vlan,                        :aliases => :VLAN
        attribute :vlan_master_of,              :aliases => :VLAN_master_of
        attribute :vlan_slave_of,               :aliases => :VLAN_slave_of
        attribute :other_config
        attribute :__host,                      :aliases => :host

        def network
          service.networks.get __network
        end

        def host
          service.hosts.get __host
        end

      end

    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
fog-xenserver-0.0.1.alpha2 lib/fog/xenserver/models/compute/pif.rb
fog-xenserver-0.0.1.alpha lib/fog/xenserver/models/compute/pif.rb
fog-1.22.0 lib/fog/xenserver/models/compute/pif.rb
fog-1.21.0 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/xenserver/models/compute/pif.rb
fog-1.20.0 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/xenserver/models/compute/pif.rb
fog-1.19.0 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/xenserver/models/compute/pif.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/xenserver/models/compute/pif.rb