From 9a90513ff59bfa2a5581058be223be2e62499b89 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Wed, 2 Aug 2017 17:22:45 +0200 Subject: [PATCH] Add ipv6 gateways for static interfaces --- src/hostinfo/ifconfig.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hostinfo/ifconfig.py b/src/hostinfo/ifconfig.py index 13a58e9..bdc91ff 100755 --- a/src/hostinfo/ifconfig.py +++ b/src/hostinfo/ifconfig.py @@ -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 -- GitLab