1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/xenserver/models/compute/pif.rb

55 lines
1.9 KiB
Ruby
Raw Normal View History

2012-04-02 07:25:03 -04:00
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
2012-04-02 07:25:03 -04:00
identity :reference
2012-04-02 07:25:03 -04:00
attribute :uuid
attribute :__bond_master_of, :aliases => :bond_master_of
attribute :__bond_slave_of, :aliases => :bond_slave_of
attribute :disallow_unplug
2012-04-02 07:25:03 -04:00
attribute :physical
attribute :mac, :aliases => :MAC
2012-04-02 07:25:03 -04:00
attribute :currently_attached
attribute :device
attribute :device_name
attribute :metrics
attribute :dns, :aliases => :DNS
2012-04-02 07:25:03 -04:00
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
2012-04-02 07:25:03 -04:00
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
2012-04-02 07:25:03 -04:00
attribute :other_config
attribute :__host, :aliases => :host
2012-04-02 07:25:03 -04:00
def network
service.networks.get __network
2012-04-02 07:25:03 -04:00
end
def host
service.hosts.get __host
2012-04-02 07:25:03 -04:00
end
end
end
end
end