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.91.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.90.1 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.90.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.89.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.88.2 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.88.1 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.88.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.87.2 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.87.1 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.87.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.86.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.85.1 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.85.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.84.1 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.84.0 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.83.4 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.83.3 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.83.2 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.83.1 lib/specinfra/command/freebsd/v11/interface.rb
specinfra-2.83.0 lib/specinfra/command/freebsd/v11/interface.rb