sailesh1993 / rpms / cloud-init

Forked from rpms/cloud-init a year ago
Clone
1160f5
From a14df44ffdc880ae16c691901e2671458ab234ff Mon Sep 17 00:00:00 2001
ce73a0
From: Eduardo Otubo <otubo@redhat.com>
ce73a0
Date: Thu, 17 Feb 2022 15:32:35 +0100
1160f5
Subject: Setting highest autoconnect priority for network-scripts
ce73a0
ce73a0
RH-Author: Eduardo Otubo <otubo@redhat.com>
ce73a0
RH-MergeRequest: 22: Setting highest autoconnect priority for network-scripts
ce73a0
RH-Commit: [1/1] 34f1d62f8934a983a124df95b861a1e448681d3b (otubo/cloud-init-src)
ce73a0
RH-Bugzilla: 2036060
ce73a0
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
ce73a0
RH-Acked-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
ce73a0
ce73a0
Set the highest autoconnect priority for network-scripts which is
ce73a0
loaded by NetworkManager ifcfg-rh plugin.  Note that keyfile is the only
ce73a0
and default existing plugin on RHEL9, by setting the highest autoconnect
ce73a0
priority for network-scripts, NetworkManager will activate
ce73a0
network-scripts but keyfile.  Network-scripts path:
ce73a0
ce73a0
Since this is a blocking issue, we decided to have this one-liner
ce73a0
downstream-only patch so we can move forward and have a better
ce73a0
NetworkManager support later on the release.
ce73a0
ce73a0
rhbz: 2036060
ce73a0
x-downstream-only: yes
ce73a0
ce73a0
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
1160f5
1160f5
patch_name: ci-Setting-highest-autoconnect-priority-for-network-scr.patch
1160f5
present_in_specfile: true
1160f5
location_in_specfile: 30
ce73a0
---
1160f5
 cloudinit/net/sysconfig.py | 1 +
1160f5
 1 file changed, 1 insertion(+)
ce73a0
ce73a0
diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
1160f5
index d8c53312..b50035b5 100644
ce73a0
--- a/cloudinit/net/sysconfig.py
ce73a0
+++ b/cloudinit/net/sysconfig.py
1160f5
@@ -337,6 +337,7 @@ class Renderer(renderer.Renderer):
1160f5
             "ONBOOT": True,
1160f5
             "USERCTL": False,
1160f5
             "BOOTPROTO": "none",
1160f5
+            "AUTOCONNECT_PRIORITY": 999
1160f5
         },
1160f5
         "suse": {"BOOTPROTO": "static", "STARTMODE": "auto"},
ce73a0
     }
ce73a0
-- 
1160f5
2.31.1
ce73a0