Blame SOURCES/0003-fix-reload-let-NM-interface-assignments-override-per.patch

40251c
From d4866bf76574a436372204583f4194ca01beb265 Mon Sep 17 00:00:00 2001
40251c
From: Eric Garver <eric@garver.life>
40251c
Date: Tue, 19 Nov 2019 11:34:03 -0500
40251c
Subject: [PATCH 03/37] fix: reload: let NM interface assignments override
40251c
 permanent config
40251c
40251c
Use the change interface call instead of add interface. This lets NM
40251c
override the permanent interface assignment.
40251c
40251c
Fixes: rhbz 1773809
40251c
(cherry picked from commit a3265daf5b8092878e82fc7840e56bb0b36a43ea)
40251c
(cherry picked from commit 48bde3b3343cbdd35af58958467b8e64e10f3821)
40251c
---
40251c
 src/firewall/core/fw.py | 2 +-
40251c
 1 file changed, 1 insertion(+), 1 deletion(-)
40251c
40251c
diff --git a/src/firewall/core/fw.py b/src/firewall/core/fw.py
40251c
index 4dc6a4f47aff..050fb9cd976d 100644
40251c
--- a/src/firewall/core/fw.py
40251c
+++ b/src/firewall/core/fw.py
40251c
@@ -988,7 +988,7 @@ class Firewall(object):
40251c
         if nm_bus_name:
40251c
             for zone in self.zone.get_zones() + [""]:
40251c
                 for interface in nm_get_interfaces_in_zone(zone):
40251c
-                    self.zone.add_interface(zone, interface, sender=nm_bus_name)
40251c
+                    self.zone.change_zone_of_interface(zone, interface, sender=nm_bus_name)
40251c
 
40251c
         self._panic = _panic
40251c
         if not self._panic:
40251c
-- 
40251c
2.23.0
40251c