da2bf9
From 7ee6542c64103205d6520c1165894b3b6a40f2c9 Mon Sep 17 00:00:00 2001
da2bf9
From: Michal Sekletar <msekleta@redhat.com>
da2bf9
Date: Wed, 12 Jan 2022 15:38:38 +0100
da2bf9
Subject: [PATCH] udev/net_id: introduce naming scheme for RHEL-8.6
da2bf9
da2bf9
RHEL-only
da2bf9
da2bf9
Related: #2039797
da2bf9
---
da2bf9
 man/systemd.net-naming-scheme.xml | 6 ++++++
da2bf9
 src/udev/udev-builtin-net_id.c    | 2 ++
da2bf9
 2 files changed, 8 insertions(+)
da2bf9
da2bf9
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
da2bf9
index a65da5c6c1..fe1aa4b654 100644
da2bf9
--- a/man/systemd.net-naming-scheme.xml
da2bf9
+++ b/man/systemd.net-naming-scheme.xml
da2bf9
@@ -307,6 +307,12 @@
da2bf9
           <para>Same as naming scheme <constant>rhel-8.4</constant>.</para>
da2bf9
         </varlistentry>
da2bf9
 
da2bf9
+        <varlistentry>
da2bf9
+          <term><constant>rhel-8.6</constant></term>
da2bf9
+
da2bf9
+          <para>Same as naming scheme <constant>rhel-8.4</constant>.</para>
da2bf9
+        </varlistentry>
da2bf9
+
da2bf9
         <para>Note that <constant>latest</constant> may be used to denote the latest scheme known to this
da2bf9
         particular version of systemd.</para>
da2bf9
     </variablelist>
da2bf9
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
da2bf9
index 81139e666b..eafcbb64c5 100644
da2bf9
--- a/src/udev/udev-builtin-net_id.c
da2bf9
+++ b/src/udev/udev-builtin-net_id.c
da2bf9
@@ -135,6 +135,7 @@ typedef enum NamingSchemeFlags {
da2bf9
         NAMING_RHEL_8_3 = NAMING_V239,
da2bf9
         NAMING_RHEL_8_4 = NAMING_V239|NAMING_BRIDGE_NO_SLOT,
da2bf9
         NAMING_RHEL_8_5 = NAMING_RHEL_8_4,
da2bf9
+        NAMING_RHEL_8_6 = NAMING_RHEL_8_4,
da2bf9
 
da2bf9
         _NAMING_SCHEME_FLAGS_INVALID = -1,
da2bf9
 } NamingSchemeFlags;
da2bf9
@@ -153,6 +154,7 @@ static const NamingScheme naming_schemes[] = {
da2bf9
         { "rhel-8.3", NAMING_RHEL_8_3 },
da2bf9
         { "rhel-8.4", NAMING_RHEL_8_4 },
da2bf9
         { "rhel-8.5", NAMING_RHEL_8_5 },
da2bf9
+        { "rhel-8.6", NAMING_RHEL_8_6 },
da2bf9
         /* … add more schemes here, as the logic to name devices is updated … */
da2bf9
 };
da2bf9