Skip to content

Commit

Permalink
udev/net_id: introduce naming scheme for RHEL-8.9
Browse files Browse the repository at this point in the history
rhel-only

Resolves: #2231846
  • Loading branch information
jamacku committed Aug 14, 2023
1 parent b50b19a commit 51222f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions man/systemd.net-naming-scheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@
<para>Same as naming scheme <constant>rhel-8.7</constant>.</para>
</varlistentry>

<varlistentry>
<term><constant>rhel-8.9</constant></term>

<para>Same as naming scheme <constant>rhel-8.7</constant>.</para>
</varlistentry>

<para>Note that <constant>latest</constant> may be used to denote the latest scheme known to this
particular version of systemd.</para>
</variablelist>
Expand Down
2 changes: 2 additions & 0 deletions src/udev/udev-builtin-net_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ typedef enum NamingSchemeFlags {
NAMING_RHEL_8_6 = NAMING_RHEL_8_4,
NAMING_RHEL_8_7 = NAMING_RHEL_8_4|NAMING_SLOT_FUNCTION_ID|NAMING_16BIT_INDEX,
NAMING_RHEL_8_8 = NAMING_RHEL_8_7,
NAMING_RHEL_8_9 = NAMING_RHEL_8_7,

_NAMING_SCHEME_FLAGS_INVALID = -1,
} NamingSchemeFlags;
Expand All @@ -163,6 +164,7 @@ static const NamingScheme naming_schemes[] = {
{ "rhel-8.6", NAMING_RHEL_8_6 },
{ "rhel-8.7", NAMING_RHEL_8_7 },
{ "rhel-8.8", NAMING_RHEL_8_8 },
{ "rhel-8.9", NAMING_RHEL_8_9 },
/* … add more schemes here, as the logic to name devices is updated … */
};

Expand Down

0 comments on commit 51222f9

Please sign in to comment.