From 5023e66b2dc46730f66f3c471fcfe0fc6bbf1200 Mon Sep 17 00:00:00 2001 From: Aaron Rossetto Date: Thu, 23 Jul 2020 08:26:28 -0500 Subject: mpm: Don't index empty forwarding interface list If no internal interfaces are found to which to forward CHDR packets, return after printing the warning instead of attempting to index the empty list and generating an exception. --- mpm/python/usrp_mpm/xports/xportmgr_udp.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mpm/python/usrp_mpm') diff --git a/mpm/python/usrp_mpm/xports/xportmgr_udp.py b/mpm/python/usrp_mpm/xports/xportmgr_udp.py index fa344b716..65228e5da 100644 --- a/mpm/python/usrp_mpm/xports/xportmgr_udp.py +++ b/mpm/python/usrp_mpm/xports/xportmgr_udp.py @@ -209,6 +209,7 @@ class XportMgrUDP: self.log.warning( 'No internal interface to forward CHDR packets to from {}.' .format(iface)) + return int_iface = internal_ifaces[0] internal_ip_addr = self.get_fpga_internal_ip_address(int_iface) -- cgit v1.2.3