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