Method: ESX::NetworkInterface#ip_address

Defined in:
lib/esx.rb

#ip_addressObject

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



574
575
576
577
578
579
580
# 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