class Specinfra::Command::Freebsd::V11::Interface
Public Class Methods
get_ipv4_address(interface)
click to toggle source
# File lib/specinfra/command/freebsd/v11/interface.rb, line 3 def get_ipv4_address(interface) "ifconfig -f inet:cidr #{interface} inet | awk '/inet /{print $2}'" end
get_ipv6_address(interface)
click to toggle source
# File lib/specinfra/command/freebsd/v11/interface.rb, line 7 def get_ipv6_address(interface) "ifconfig -f inet6:cidr #{interface} inet6 | awk '/inet6 /{print $2}' | tail -1" end