From 4fed609050398e984a61fa609c76e5004a670bc7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 7 Oct 2022 08:52:02 -0400 Subject: [PATCH] Avoid enumerating members of a bond Various parts of confluent that go to try to use all the interfaces will now skip bond members. One example problem is that joining the SSDP multicast group for SSDP would cause the kernel to IGMPv6 out on bond members as well as the bond itself. This change ensures that the bond interface is only used and never bypassed. --- confluent_server/confluent/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/util.py b/confluent_server/confluent/util.py index 3f55c2e6..1509a827 100644 --- a/confluent_server/confluent/util.py +++ b/confluent_server/confluent/util.py @@ -63,6 +63,8 @@ def list_interface_indexes(): for iface in os.listdir('/sys/class/net/'): if not os.path.exists('/sys/class/net/{0}/ifindex'.format(iface)): continue + if os.path.exists('/sys/class/net/{0}/bonding_slave'.format(iface)): + continue ifile = open('/sys/class/net/{0}/ifindex'.format(iface), 'r') intidx = int(ifile.read()) ifile.close()