def ip_address
      raise ::Fission::Error,"VM #{@name} does not exist" unless self.exists?

      unless mac_address.nil?
        lease=LeasesFile.new("/var/db/vmware/vmnet-dhcpd-vmnet8.leases").find_lease_by_mac(mac_address)
        if lease.nil?
          return nil
        else
          return lease.ip
        end
      else
        # No mac address was found for this machine so we can't calculate the ip-address
        return nil
      end
    end
def ip_address
      raise ::Fission::Error,"VM #{@name} does not exist" unless self.exists?

      unless mac_address.nil?
        lease=LeasesFile.new("/var/db/vmware/vmnet-dhcpd-vmnet8.leases").find_lease_by_mac(mac_address)
        if lease.nil?
          return nil
        else
          return lease.ip
        end
      else
        # No mac address was found for this machine so we can't calculate the ip-address
        return nil
      end
    end
Retrieve the ip address for a vm.
 This will only look for dynamically assigned ip address via vmware dhcp