teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0110-udev-net-setup-link-change-the-default-MACAddressPol.patch

ac3a84
From c150bc4cc27d560970fd34cf2347142325e7704a Mon Sep 17 00:00:00 2001
cc3383
From: Michal Sekletar <msekleta@redhat.com>
cc3383
Date: Tue, 21 Sep 2021 15:01:19 +0200
cc3383
Subject: [PATCH] udev/net-setup-link: change the default MACAddressPolicy to
cc3383
 "none"
cc3383
cc3383
While stable MAC address for interface types that don't have the
cc3383
address provided by HW could be useful it also breaks LACP based bonds.
cc3383
Let's err on the side of caution and don't change the MAC address from
cc3383
udev.
cc3383
cc3383
RHEL-only
cc3383
ac3a84
Related: #2138081
cc3383
---
cc3383
 man/systemd.link.xml                       | 2 +-
cc3383
 network/99-default.link                    | 2 +-
cc3383
 test/fuzz/fuzz-link-parser/99-default.link | 2 +-
cc3383
 3 files changed, 3 insertions(+), 3 deletions(-)
cc3383
cc3383
diff --git a/man/systemd.link.xml b/man/systemd.link.xml
ac3a84
index cc55b02b18..69e0ac779c 100644
cc3383
--- a/man/systemd.link.xml
cc3383
+++ b/man/systemd.link.xml
ac3a84
@@ -1117,7 +1117,7 @@
cc3383
 
cc3383
       <programlisting>[Link]
cc3383
 NamePolicy=kernel database onboard slot path
cc3383
-MACAddressPolicy=persistent</programlisting>
cc3383
+MACAddressPolicy=none</programlisting>
cc3383
     </example>
cc3383
 
cc3383
     <example>
cc3383
diff --git a/network/99-default.link b/network/99-default.link
ac3a84
index 429ac31e80..083bdb5659 100644
cc3383
--- a/network/99-default.link
cc3383
+++ b/network/99-default.link
ac3a84
@@ -17,4 +17,4 @@ OriginalName=*
cc3383
 [Link]
cc3383
 NamePolicy=keep kernel database onboard slot path
cc3383
 AlternativeNamesPolicy=database onboard slot path
cc3383
-MACAddressPolicy=persistent
cc3383
+MACAddressPolicy=none
cc3383
diff --git a/test/fuzz/fuzz-link-parser/99-default.link b/test/fuzz/fuzz-link-parser/99-default.link
cc3383
index feb5b1fbb0..3d755898b4 100644
cc3383
--- a/test/fuzz/fuzz-link-parser/99-default.link
cc3383
+++ b/test/fuzz/fuzz-link-parser/99-default.link
cc3383
@@ -9,4 +9,4 @@
cc3383
 
cc3383
 [Link]
cc3383
 NamePolicy=keep kernel database onboard slot path
cc3383
-MACAddressPolicy=persistent
cc3383
+MACAddressPolicy=none