sailesh1993 / rpms / cloud-init

Forked from rpms/cloud-init a year ago
Clone
Blob Blame History Raw
From e659b80b25455b5ac53b6453c78fabf5d2caff30 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 28 Apr 2020 18:10:46 -0300
Subject: [PATCH] Enable IPV6_AUTOCONF if ipv6

---
 cloudinit/net/sysconfig.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
index d94c1f5..be47514 100644
--- a/cloudinit/net/sysconfig.py
+++ b/cloudinit/net/sysconfig.py
@@ -673,7 +673,7 @@ class Renderer(renderer.Renderer):
             netcfg.extend([_make_header(), 'NETWORKING=yes'])
             if network_state.use_ipv6:
                 netcfg.append('NETWORKING_IPV6=yes')
-                netcfg.append('IPV6_AUTOCONF=no')
+                netcfg.append('IPV6_AUTOCONF=yes')
             util.write_file(sysconfig_path,
                             "\n".join(netcfg) + "\n", file_mode)
 
-- 
2.26.2