class ESX::NetworkInterface
Attributes
_wrapped_object[RW]
Public Class Methods
wrap(obj)
click to toggle source
Accepts VirtualEthernetCard and GuestNicInfo objects
# File lib/esx.rb, line 565 def self.wrap(obj) ni = NetworkInterface.new ni._wrapped_object = obj ni end
Public Instance Methods
ip_address()
click to toggle source
returns nil if the NetworkInterface
is of type VirtualEthernetCard returns the IP address if VMWare tools installed in guest and _wrapped_object
is of type GuestNicInfo
# File lib/esx.rb, line 574 def ip_address if _wrapped_object.is_a? RbVmomi::VIM::VirtualEthernetCard nil else _wrapped_object.ipAddress.first end end
mac()
click to toggle source
# File lib/esx.rb, line 582 def mac _wrapped_object.macAddress end