lib/linux_admin/network_interface.rb
# Retrieve the IPv6 address assigned to the interface
#
# @return [String] IPv6 address for the managed interface
# @raise [ArgumentError] if the given scope is not `:global` or `:link`
Retrieve the IPv6 address assigned to the interface
Retrieve the IPv6 address assigned to the interface
def address6(scope = :global)
      case scope
      when :global
        @network_conf[:address6_global]
      when :link
        @network_conf[:address6_link]
      else
        raise ArgumentError, "Unrecognized address scope #{scope}"
      end
    end
def address6 ( scope = :global ) case scope when :global @network_conf [ :address6_global ] when :link @network_conf [ :address6_link ] else raise ArgumentError , "Unrecognized address scope #{scope}" end end
Retrieve the IPv6 address assigned to the interface
Retrieve the IPv6 address assigned to the interface
IPv6 address for the managed interface
IPv6 address for the managed interface
String
[ArgumentError] if the given scope is not `:global` or `:link`
[ ArgumentError ] if the given scope is not ` : global ` or ` : link `
scope