aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm
diff options
context:
space:
mode:
authorAaron Rossetto <aaron.rossetto@ni.com>2020-07-23 08:26:28 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-07-24 15:24:14 -0500
commit5023e66b2dc46730f66f3c471fcfe0fc6bbf1200 (patch)
tree38545057002139ec19e3f7626de5d4fd08077647 /mpm/python/usrp_mpm
parentad707ab22db189a79ab9bd6a17b5168146afa0a6 (diff)
downloaduhd-5023e66b2dc46730f66f3c471fcfe0fc6bbf1200.tar.gz
uhd-5023e66b2dc46730f66f3c471fcfe0fc6bbf1200.tar.bz2
uhd-5023e66b2dc46730f66f3c471fcfe0fc6bbf1200.zip
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.
Diffstat (limited to 'mpm/python/usrp_mpm')
-rw-r--r--mpm/python/usrp_mpm/xports/xportmgr_udp.py1
1 files changed, 1 insertions, 0 deletions
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)