class VCenterDriver::PortGroup
Class PortGroup
Public Class Methods
new(item, vi_client = nil, _check = true)
click to toggle source
Calls superclass method
VCenterDriver::Network.new
# File lib/network.rb, line 379 def initialize(item, vi_client = nil, _check = true) check_item(item, RbVmomi::VIM::Network) super(item, vi_client, false) end
Public Instance Methods
clusters()
click to toggle source
# File lib/network.rb, line 385 def clusters net_clusters = {} host_members =@item['host'] host_members.each do |h| if !net_clusters.key?(h.parent._ref.to_s) net_clusters[h.parent._ref.to_s] = h.parent.name.to_s end end net_clusters end
network_type()
click to toggle source
# File lib/network.rb, line 396 def network_type VCenterDriver::Network::NETWORK_TYPE_PG end