f403bd6b3b
- ci-Revert-Manual-revert-Use-Network-Manager-and-Netplan.patch [bz#2219528] - ci-Revert-Revert-Add-native-NetworkManager-support-1224.patch [bz#2219528] - ci-nm-generate-ipv6-stateful-dhcp-config-at-par-with-sy.patch [bz#2219528] - ci-network_manager-add-a-method-for-ipv6-static-IP-conf.patch [bz#2219528] - ci-net-sysconfig-enable-sysconfig-renderer-if-network-m.patch [bz#2219528] - ci-network-manager-Set-higher-autoconnect-priority-for-.patch [bz#2219528] - ci-Set-default-renderer-as-sysconfig-for-centos-rhel-41.patch [bz#2219528] - Resolves: bz#2219528 ([RHEL8] Support configuring network by NM keyfiles)
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From 2db9b803e64171d2c8d8a3ad465b0fb979abf146 Mon Sep 17 00:00:00 2001
|
|
From: Ani Sinha <anisinha@redhat.com>
|
|
Date: Mon, 22 May 2023 21:33:53 +0530
|
|
Subject: [PATCH 4/7] network_manager: add a method for ipv6 static IP
|
|
configuration (#4127)
|
|
|
|
RH-Author: Ani Sinha <None>
|
|
RH-MergeRequest: 103: [RHEL8] Support configuring network by NM keyfiles
|
|
RH-Bugzilla: 2219528
|
|
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
RH-Commit: [4/7] dfc67da03ac11c18439c3500b8cfba6a66a7428e
|
|
|
|
The static IP configuration for IPv6 in the method_map is missing for
|
|
network manager renderer. This is causing cloud-init to generate a keyfile with
|
|
IPv6 method as "auto" instead of "manual". This fixes this issue.
|
|
|
|
fixes: #4126
|
|
RHBZ: 2196284
|
|
|
|
Signed-off-by: Ani Sinha <anisinha@redhat.com>
|
|
(cherry picked from commit 5d440856cb6d2b4c908015fe4eb7227615c17c8b)
|
|
---
|
|
cloudinit/net/network_manager.py | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/cloudinit/net/network_manager.py b/cloudinit/net/network_manager.py
|
|
index 744c0cbb..2752f52f 100644
|
|
--- a/cloudinit/net/network_manager.py
|
|
+++ b/cloudinit/net/network_manager.py
|
|
@@ -69,6 +69,7 @@ class NMConnection:
|
|
|
|
method_map = {
|
|
"static": "manual",
|
|
+ "static6": "manual",
|
|
"dhcp6": "auto",
|
|
"ipv6_slaac": "auto",
|
|
"ipv6_dhcpv6-stateless": "auto",
|
|
--
|
|
2.39.3
|
|
|