Class: PuppetX::VMware::Mapper::HostVirtualNicSpecMap
- Defined in:
- lib/puppet_x/vmware/mapper/host_virtual_nic_spec_map.rb
Instance Attribute Summary
Attributes inherited from Map
Instance Method Summary collapse
-
#initialize ⇒ HostVirtualNicSpecMap
constructor
A new instance of HostVirtualNicSpecMap.
Methods inherited from Map
Constructor Details
#initialize ⇒ HostVirtualNicSpecMap
Returns a new instance of HostVirtualNicSpecMap.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/puppet_x/vmware/mapper/host_virtual_nic_spec_map.rb', line 8 def initialize @initTree = { Node => NodeData[ :node_type => 'HostVirtualNicSpec', ], :distributedVirtualPort => { Node => NodeData[ :node_type => 'DistributedVirtualSwitchPortConnection', ], :connectionCookie => LeafData[ :desc => "Generated from implementation", ], :portgroupKey => LeafData[ :desc => "The key of the portgroup", :prop_name => :dvportgroupname, :requires_siblings => [ :switchUuid ], ], :portKey => LeafData[ :desc => "The key of the port", ], :switchUuid => LeafData[ :desc => "The UUID of the switch", :prop_name => :dvswitchname, :requires_siblings => [ :portgroupKey ], ], }, :ip => { Node => NodeData[ :node_type => 'HostIpConfig', ], :dhcp => LeafData[ :desc => "Use DHCP to configure the nic?", :valid_enum => [:true, :false], ], :ipAddress => LeafData[ :desc => "IP Address assigned to network adapter", :requires_siblings => [ :subnetMask, :dhcp ], ], :subnetMask => LeafData[ :desc => "Subnet mask", :requires_siblings => [ :ipAddress, :dhcp ], ], }, :mac => LeafData[ :desc => "MAC address of virtual adapter", ], :mtu => LeafData[ :desc => "The maximum transmission unit for packets size in bytes for the virtual nic.", :validate => PuppetX::VMware::Mapper::validate_i_ge(0), :munge => PuppetX::VMware::Mapper::munge_to_i, ], :portgroup => LeafData[ :desc => "The Portgroup to which the Vnic connects. Should only be specified if distributedVirtualPort is not.", :prop_name => :standardportgroupname ], :tsoEnabled => LeafData[ :desc => "Flag enabling or disabling tcp segmentation offset for a virtual nic." ], } super end |