Commit 9a90513f authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Add ipv6 gateways for static interfaces

parent 9210f5fe
......@@ -123,6 +123,9 @@ def generate_ifcfgv6(tree, interface, search, nameservers):
if a in n:
gateway = s.gateway[0]
address.append('%s/%d' % (a, n.prefixlen))
if s.name_servers[0]:
nameservers.extend(re.split('[, ]+', s.name_servers[0]))
pass
if s.domain[0]:
search.update(s.domain[0].split())
pass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment