Method: Specinfra::Command::Darwin::Base::Host.get_ipv6_address
- Defined in:
- lib/specinfra/command/darwin/base/host.rb
permalink .get_ipv6_address(name) ⇒ Object
[View source]
33 34 35 36 37 |
# File 'lib/specinfra/command/darwin/base/host.rb', line 33 def get_ipv6_address(name) ## With dscacheutil multiple IPs can be returned. For IPv6 the link-local is displayed first ## hence the last entry is picked. %Q{dscacheutil -q host -a name #{escape(name)} | awk '/^ipv6_/{ ip = $2 } END{ print ip }'} end |