ce73a0
From cf7b45eaa070061615ad26f6754f7d2b39e7de76 Mon Sep 17 00:00:00 2001
ce73a0
From: Eduardo Otubo <otubo@redhat.com>
ce73a0
Date: Thu, 17 Feb 2022 15:32:35 +0100
ce73a0
Subject: [PATCH 3/3] 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>
ce73a0
---
ce73a0
 cloudinit/net/sysconfig.py | 2 +-
ce73a0
 1 file changed, 1 insertion(+), 1 deletion(-)
ce73a0
ce73a0
diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
ce73a0
index 7ecbe1c3..c7ca7c56 100644
ce73a0
--- a/cloudinit/net/sysconfig.py
ce73a0
+++ b/cloudinit/net/sysconfig.py
ce73a0
@@ -309,7 +309,7 @@ class Renderer(renderer.Renderer):
ce73a0
 
ce73a0
     iface_defaults = {
ce73a0
         'rhel': {'ONBOOT': True, 'USERCTL': False,
ce73a0
-                 'BOOTPROTO': 'none'},
ce73a0
+                 'BOOTPROTO': 'none', "AUTOCONNECT_PRIORITY": 999},
ce73a0
         'suse': {'BOOTPROTO': 'static', 'STARTMODE': 'auto'},
ce73a0
     }
ce73a0
 
ce73a0
-- 
ce73a0
2.27.0
ce73a0