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