|
|
1797a9 |
From 355bc8f052e35084405343a0b94ccf06007c31f3 Mon Sep 17 00:00:00 2001
|
|
|
1797a9 |
From: Gris Ge <fge@redhat.com>
|
|
|
1797a9 |
Date: Wed, 2 Jun 2021 19:53:25 +0800
|
|
|
1797a9 |
Subject: [PATCH] bond: Don't validate current bond status
|
|
|
1797a9 |
|
|
|
1797a9 |
If a bond interface is only marked as changed due to other
|
|
|
1797a9 |
interface(like bridge port list change), its original desire information
|
|
|
1797a9 |
is fully read from current status, there is no need to validate it.
|
|
|
1797a9 |
|
|
|
1797a9 |
The fix is only validate on desired bond interface.
|
|
|
1797a9 |
|
|
|
1797a9 |
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
1797a9 |
---
|
|
|
1797a9 |
libnmstate/ifaces/bond.py | 2 +-
|
|
|
1797a9 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
1797a9 |
|
|
|
1797a9 |
diff --git a/libnmstate/ifaces/bond.py b/libnmstate/ifaces/bond.py
|
|
|
1797a9 |
index 01859b0..6311f5f 100644
|
|
|
1797a9 |
--- a/libnmstate/ifaces/bond.py
|
|
|
1797a9 |
+++ b/libnmstate/ifaces/bond.py
|
|
|
1797a9 |
@@ -88,7 +88,7 @@ class BondIface(BaseIface):
|
|
|
1797a9 |
|
|
|
1797a9 |
def pre_edit_validation_and_cleanup(self):
|
|
|
1797a9 |
super().pre_edit_validation_and_cleanup()
|
|
|
1797a9 |
- if self.is_up and (self.is_desired or self.is_changed):
|
|
|
1797a9 |
+ if self.is_up and self.is_desired:
|
|
|
1797a9 |
self._discard_bond_option_when_mode_change()
|
|
|
1797a9 |
self._validate_bond_mode()
|
|
|
1797a9 |
self._fix_mac_restriced_mode()
|
|
|
1797a9 |
--
|
|
|
1797a9 |
2.31.1
|
|
|
1797a9 |
|