summaryrefslogtreecommitdiff
path: root/tests/unittests/test_distros
diff options
context:
space:
mode:
authorRobert Schweikert <rjschwei@suse.com>2019-03-25 15:53:12 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-03-25 15:53:12 +0000
commitbb0b6f1d4e587d74a6e8fe17fa1c4dc3cf5287f7 (patch)
tree934fd50d3bd4a538420d97265cead4521c42a27e /tests/unittests/test_distros
parentdfe50e300882e3affcb02e686578807aea921b99 (diff)
downloadvyos-cloud-init-bb0b6f1d4e587d74a6e8fe17fa1c4dc3cf5287f7.tar.gz
vyos-cloud-init-bb0b6f1d4e587d74a6e8fe17fa1c4dc3cf5287f7.zip
net/sysconfig: write out SUSE-compatible IPv6 config
For writing IPv6 addresses to ifcfg-* the name "IPV6ADDR" is used. For secondary IPs the value for "IPV6ADDR_SECONDARIES" is set. On SUSE based distributions the names "IPADDR6" and "IPADDR6_$SOMELABEL" need to be used.
Diffstat (limited to 'tests/unittests/test_distros')
-rw-r--r--tests/unittests/test_distros/test_netconfig.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/test_distros/test_netconfig.py b/tests/unittests/test_distros/test_netconfig.py
index e4530408..c3c0c8c5 100644
--- a/tests/unittests/test_distros/test_netconfig.py
+++ b/tests/unittests/test_distros/test_netconfig.py
@@ -496,6 +496,7 @@ class TestNetCfgDistroRedhat(TestNetCfgDistroBase):
BOOTPROTO=none
DEFROUTE=yes
DEVICE=eth0
+ IPADDR6=2607:f0d0:1002:0011::2/64
IPV6ADDR=2607:f0d0:1002:0011::2/64
IPV6INIT=yes
IPV6_DEFAULTGW=2607:f0d0:1002:0011::1
@@ -588,6 +589,7 @@ class TestNetCfgDistroOpensuse(TestNetCfgDistroBase):
BOOTPROTO=none
DEFROUTE=yes
DEVICE=eth0
+ IPADDR6=2607:f0d0:1002:0011::2/64
IPV6ADDR=2607:f0d0:1002:0011::2/64
IPV6INIT=yes
IPV6_DEFAULTGW=2607:f0d0:1002:0011::1