63ad96c6b1
- 0011-Revert-Manual-revert-Use-Network-Manager-and-Netplan.patch - 0012-Revert-Revert-Add-native-NetworkManager-support-1224.patch - 0013-net-sysconfig-do-not-use-the-highest-autoconnect-pri.patch - 0014-net-sysconfig-cosmetic-fix-tox-formatting.patch - 0015-nm-generate-ipv6-stateful-dhcp-config-at-par-with-sy.patch [bz#2207716] - 0016-network_manager-add-a-method-for-ipv6-static-IP-conf.patch [bz#2196284] - 0017-net-sysconfig-enable-sysconfig-renderer-if-network-m.patch [bz#2194050] - 0018-network-manager-Set-higher-autoconnect-priority-for-.patch [bz#2196231] - 0019-Set-default-renderer-as-sysconfig-for-c9s-RHEL-9.patch [bz#2209349] - Resolves: bz#2118235 bz#2194050 bz#2196231 bz#2196284 bz#2207716 bz#2209349
50 lines
1.5 KiB
Diff
50 lines
1.5 KiB
Diff
From 58d7574bca2b00d05d090c180f1345a2408cc700 Mon Sep 17 00:00:00 2001
|
|
From: Ani Sinha <anisinha@redhat.com>
|
|
Date: Mon, 22 May 2023 21:30:01 +0530
|
|
Subject: [PATCH] nm: generate ipv6 stateful dhcp config at par with sysconfig
|
|
(#4115)
|
|
|
|
The sysconfig renderer sets the following in the ifcfg file for IPV6 stateful
|
|
DHCP configuration:
|
|
|
|
BOOTPROTO = "dhcp"
|
|
DHCPV6C = True
|
|
IPV6INIT = True
|
|
IPV6_AUTOCONF = False
|
|
|
|
This should result in
|
|
[ipv6]
|
|
method=dhcp
|
|
|
|
in the network manager generated keyfile as DHCPV6C is set and
|
|
IPV6_AUTOCONF is not set. Unfortunately the network manager renderer
|
|
deviates from this and generates:
|
|
[ipv6]
|
|
method=auto
|
|
|
|
in it's rendered keyfile. This change fixes this deviation and sets the
|
|
IPV6 dhcp stateful configuration in alignment with what is generated by the
|
|
sysconfig renderer.
|
|
|
|
RHBZ: 2207716
|
|
|
|
Signed-off-by: Ani Sinha <anisinha@redhat.com>
|
|
(cherry picked from commit ea573ba6fc25fe49a6a1a322eeb5259b6238d78b)
|
|
---
|
|
cloudinit/net/network_manager.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/cloudinit/net/network_manager.py b/cloudinit/net/network_manager.py
|
|
index 53763d15..744c0cbb 100644
|
|
--- a/cloudinit/net/network_manager.py
|
|
+++ b/cloudinit/net/network_manager.py
|
|
@@ -72,7 +72,7 @@ class NMConnection:
|
|
"dhcp6": "auto",
|
|
"ipv6_slaac": "auto",
|
|
"ipv6_dhcpv6-stateless": "auto",
|
|
- "ipv6_dhcpv6-stateful": "auto",
|
|
+ "ipv6_dhcpv6-stateful": "dhcp",
|
|
"dhcp4": "auto",
|
|
"dhcp": "auto",
|
|
}
|