Blame SOURCES/0027-fix-nm-reload-only-consider-NM-connections-with-a-re.patch

63f414
From 1cbe39d4260c633da4b7110d6e2e7722b8454af4 Mon Sep 17 00:00:00 2001
cc55fb
From: Eric Garver <eric@garver.life>
cc55fb
Date: Tue, 27 Apr 2021 08:56:13 -0400
63f414
Subject: [PATCH 27/30] fix(nm): reload: only consider NM connections with a
cc55fb
 real interface
cc55fb
cc55fb
Where real interface means linux interface capable of having an IP
cc55fb
address and does not exceed IFNAMSIZ.
cc55fb
cc55fb
Fixes: rhbz 1928860
cc55fb
(cherry picked from commit f18f1cc96503fbc5d42f30ecdc6f0da4c56aac4d)
63f414
(cherry picked from commit 7e9c4a5072ee3fd1aaf4162ef6ef1bf84b8a82eb)
cc55fb
---
cc55fb
 src/firewall/core/fw_nm.py | 8 ++++++--
cc55fb
 1 file changed, 6 insertions(+), 2 deletions(-)
cc55fb
cc55fb
diff --git a/src/firewall/core/fw_nm.py b/src/firewall/core/fw_nm.py
cc55fb
index 37282a1a7711..0e38dd47e927 100644
cc55fb
--- a/src/firewall/core/fw_nm.py
cc55fb
+++ b/src/firewall/core/fw_nm.py
cc55fb
@@ -141,7 +141,9 @@ def nm_get_connections(connections, connections_name):
cc55fb
 
cc55fb
         connections_name[uuid] = name
cc55fb
         for dev in devices:
cc55fb
-            connections[dev.get_iface()] = uuid
cc55fb
+            ip_iface = dev.get_ip_iface()
cc55fb
+            if ip_iface:
cc55fb
+                connections[ip_iface] = uuid
cc55fb
 
cc55fb
 def nm_get_interfaces():
cc55fb
     """Get active interfaces from NM
cc55fb
@@ -169,7 +171,9 @@ def nm_get_interfaces():
cc55fb
                 continue
cc55fb
 
cc55fb
         for dev in active_con.get_devices():
cc55fb
-            active_interfaces.append(dev.get_iface())
cc55fb
+            ip_iface = dev.get_ip_iface()
cc55fb
+            if ip_iface:
cc55fb
+                active_interfaces.append(ip_iface)
cc55fb
 
cc55fb
     return active_interfaces
cc55fb
 
cc55fb
-- 
cc55fb
2.27.0
cc55fb