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.82.25 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.24 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.23 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.22 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.21 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.20 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.19 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.18 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.17 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.16 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.15 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.14 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.13 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.12 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.11 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.10 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.9 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.8 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.7 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.82.6 lib/specinfra/command/freebsd/v11/interface.rb