aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-06-28 12:18:01 +0200
committerskooNI <60897865+skooNI@users.noreply.github.com>2022-07-20 15:57:20 -0500
commit43f5ac70ced4537e7b2959704ddbdcd9ffb11b7c (patch)
tree849bc5302e10c4a249a282e42eb968c8cd1ee97e
parent414e67480abc8fed5c8ec056af3ccfda33d079fd (diff)
downloaduhd-43f5ac70ced4537e7b2959704ddbdcd9ffb11b7c.tar.gz
uhd-43f5ac70ced4537e7b2959704ddbdcd9ffb11b7c.tar.bz2
uhd-43f5ac70ced4537e7b2959704ddbdcd9ffb11b7c.zip
mpm: xportmgr_udp: Include iface name in info
XportMgrUDP.get_chdr_link_options() now also returns the interface name (e.g., sfp0) in its return values, which is very useful for identifying a transport in a different context (e.g., when only the node_inst value of a transport is known).
-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 f952576e4..9e69e6bd1 100644
--- a/mpm/python/usrp_mpm/xports/xportmgr_udp.py
+++ b/mpm/python/usrp_mpm/xports/xportmgr_udp.py
@@ -224,6 +224,7 @@ class XportMgrUDP:
return [
{
+ 'iface': iface_name,
'ipv4': str(iface_info['ip_addr']) \
if (self.iface_config[iface_name]['type'] != 'internal') \
else str(self.get_fpga_internal_ip_address(iface_name)),