Sha256: a02fcfee8b34ec064c9f01e391048e91bfd155004afc3f9524aba7f344f27419

Contents?: true

Size: 701 Bytes

Versions: 12

Compression:

Stored size: 701 Bytes

Contents

module Fog
  module Compute
    class XenServer
      module Models
        class Vlan < Model
          # API Reference here:
          # @see http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VLAN

          provider_class :VLAN
          collection_name :vlans

          identity :reference

          attribute :other_config
          attribute :tag,                :type => :integer
          attribute :uuid

          has_one_identity   :tagged_pif,   :pifs,   :aliases => :tagged_PIF,   :as => :tagged_PIF
          has_one_identity   :untagged_pif, :pifs,   :aliases => :untagged_PIF, :as => :untagged_PIF

          require_before_save :tag
        end
      end
    end
  end
end

Version data entries

12 entries across 10 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/models/vlan.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/models/vlan.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.2.0 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.1.2 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.1.1 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.1.0 lib/fog/compute/xen_server/models/vlan.rb
fog-xenserver-0.0.1.beta2 lib/fog/compute/xen_server/models/vlan.rb