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