summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Otubo <otubo@redhat.com>2021-01-07 16:51:30 +0100
committerGitHub <noreply@github.com>2021-01-07 10:51:30 -0500
commitea6fcc14909eda6c2409658e897c6ebd5157e290 (patch)
tree0f305b7a3ee21039cd915d4b4eda15ca7d83668e
parentaa1014cae2e326109581d4624f3a195a89369fd7 (diff)
downloadvyos-cloud-init-ea6fcc14909eda6c2409658e897c6ebd5157e290.tar.gz
vyos-cloud-init-ea6fcc14909eda6c2409658e897c6ebd5157e290.zip
Missing IPV6_AUTOCONF=no to render sysconfig dhcp6 stateful on RHEL (#753)
IPV6_AUTOCONF needs to be set to 'no' on RHEL so NetworkManager can properly acquire ipv6 address. rhbz: #1859695 Signed-off-by: Eduardo Otubo <otubo@redhat.com>
-rw-r--r--cloudinit/net/sysconfig.py1
-rw-r--r--tests/unittests/test_net.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
index ba85584e..99a4bae4 100644
--- a/cloudinit/net/sysconfig.py
+++ b/cloudinit/net/sysconfig.py
@@ -402,6 +402,7 @@ class Renderer(renderer.Renderer):
iface_cfg['BOOTPROTO'] = 'dhcp'
iface_cfg['DHCPV6C'] = True
iface_cfg['IPV6INIT'] = True
+ iface_cfg['IPV6_AUTOCONF'] = False
else:
iface_cfg['IPV6INIT'] = True
# Configure network settings using DHCPv6
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py
index 8b34e0c9..bf0cdabb 100644
--- a/tests/unittests/test_net.py
+++ b/tests/unittests/test_net.py
@@ -1369,6 +1369,7 @@ NETWORK_CONFIGS = {
DEVICE=iface0
DHCPV6C=yes
IPV6INIT=yes
+ IPV6_AUTOCONF=no
IPV6_FORCE_ACCEPT_RA=yes
DEVICE=iface0
NM_CONTROLLED=no