Sha256: 96891c0ae7f7f6743e85f53c2a2c65f9f198270c9c59c607f43e8111cdf97284

Contents?: true

Size: 373 Bytes

Versions: 85

Compression:

Stored size: 373 Bytes

Contents

class Specinfra::Command::Freebsd::V11::Interface < Specinfra::Command::Freebsd::Base::Interface
  class << self
    def get_ipv4_address(interface)
      "ifconfig -f inet:cidr #{interface} inet | awk '/inet /{print $2}'"
    end

    def get_ipv6_address(interface)
      "ifconfig -f inet6:cidr #{interface} inet6 | awk '/inet6 /{print $2}' | tail -1"
    end
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
specinfra-2.70.2 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.70.1 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.70.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.69.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.68.2 lib/specinfra/command/freebsd/v11/interface.rb