ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
cc3383
From f00cbfd1cf67f28a92863c74ef64a1aedfacabc6 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
cc3383
Resolves: #2009237
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
cc3383
index 45cabbccf7..0033e4c28f 100644
cc3383
--- a/man/systemd.link.xml
cc3383
+++ b/man/systemd.link.xml
cc3383
@@ -961,7 +961,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
cc3383
index bca660ac28..31aee37e75 100644
cc3383
--- a/network/99-default.link
cc3383
+++ b/network/99-default.link
cc3383
@@ -13,4 +13,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