richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
4295f9
From ac965c0ae8c9ffa7d606bce9ffa3052fccbac0ce Mon Sep 17 00:00:00 2001
4295f9
From: Michal Sekletar <msekleta@redhat.com>
4295f9
Date: Tue, 21 Sep 2021 15:01:19 +0200
4295f9
Subject: [PATCH] udev/net-setup-link: change the default MACAddressPolicy to
4295f9
 "none"
4295f9
4295f9
While stable MAC address for interface types that don't have the
4295f9
address provided by HW could be useful it also breaks LACP based bonds.
4295f9
Let's err on the side of caution and don't change the MAC address from
4295f9
udev.
4295f9
4295f9
Resolves: #1921094
4295f9
---
4295f9
 man/systemd.link.xml                       | 2 +-
4295f9
 test/fuzz/fuzz-link-parser/99-default.link | 2 +-
4295f9
 2 files changed, 2 insertions(+), 2 deletions(-)
4295f9
4295f9
diff --git a/man/systemd.link.xml b/man/systemd.link.xml
4295f9
index 1093e2e0b8..095d8b4873 100644
4295f9
--- a/man/systemd.link.xml
4295f9
+++ b/man/systemd.link.xml
4295f9
@@ -816,7 +816,7 @@
4295f9
 
4295f9
       <programlisting>[Link]
4295f9
 NamePolicy=kernel database onboard slot path
4295f9
-MACAddressPolicy=persistent</programlisting>
4295f9
+MACAddressPolicy=none</programlisting>
4295f9
     </example>
4295f9
 
4295f9
     <example>
4295f9
diff --git a/test/fuzz/fuzz-link-parser/99-default.link b/test/fuzz/fuzz-link-parser/99-default.link
4295f9
index feb5b1fbb0..3d755898b4 100644
4295f9
--- a/test/fuzz/fuzz-link-parser/99-default.link
4295f9
+++ b/test/fuzz/fuzz-link-parser/99-default.link
4295f9
@@ -9,4 +9,4 @@
4295f9
 
4295f9
 [Link]
4295f9
 NamePolicy=keep kernel database onboard slot path
4295f9
-MACAddressPolicy=persistent
4295f9
+MACAddressPolicy=none