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