lib/linux_admin/network_interface/network_interface_rh.rb
def apply_static6(ip, prefix, gw, dns, search = nil)
      self.address6     = "#{ip}/#{prefix}"
      self.gateway6     = gw
      self.dns          = dns
      self.search_order = search if search
      save
    end
# Applies the given static IPv6 network configuration to the interface
#
# @param ip [String] IPv6 address
# @param prefix [Number] prefix length for IPv6 address
# @param gw [String] gateway address
# @param dns [Array<String>] list of dns servers
# @param search [Array<String>] list of search domains
# @return [Boolean] true on success, false otherwise
# @raise ArgumentError if an IP is not formatted properly or interface does not start
Applies the given static IPv6 network configuration to the interface
Applies the given static IPv6 network configuration to the interface
def apply_static6(ip, prefix, gw, dns, search = nil)
      self.address6     = "#{ip}/#{prefix}"
      self.gateway6     = gw
      self.dns          = dns
      self.search_order = search if search
      save
    end
def apply_static6 ( ip , prefix , gw , dns , search = nil ) self . address6 = "#{ip}/#{prefix}" self . gateway6 = gw self . dns = dns self . search_order = search if search save end
Applies the given static IPv6 network configuration to the interface
Applies the given static IPv6 network configuration to the interface
true on success, false otherwise
true on success false otherwise
Boolean
ArgumentError if an IP is not formatted properly or interface does not start
ArgumentError if an IP is not formatted properly or interface does not start
ip
None
prefix
prefix length for IPv6 address
prefix length for IPv6 address
gw
None
dns
list of dns servers
list of dns servers
search
list of search domains
list of search domains