aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/ethtable.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-06-12 10:33:09 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commite7f7f06b498eed374a62fa15894747dd1acf892d (patch)
tree874a458b963144ee499ba6add83d155b913d7620 /mpm/python/usrp_mpm/ethtable.py
parentdb52a26d3accadb9f170cb3b2098956186e80069 (diff)
downloaduhd-e7f7f06b498eed374a62fa15894747dd1acf892d.tar.gz
uhd-e7f7f06b498eed374a62fa15894747dd1acf892d.tar.bz2
uhd-e7f7f06b498eed374a62fa15894747dd1acf892d.zip
mpm: Added eth table preloading capability
Diffstat (limited to 'mpm/python/usrp_mpm/ethtable.py')
-rw-r--r--mpm/python/usrp_mpm/ethtable.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/ethtable.py b/mpm/python/usrp_mpm/ethtable.py
index e97b05856..78f2e60a8 100644
--- a/mpm/python/usrp_mpm/ethtable.py
+++ b/mpm/python/usrp_mpm/ethtable.py
@@ -87,15 +87,19 @@ class EthDispatcherTable(object):
self.log.error(
"Could not resolve a MAC address for IP address `{}'".format(ip_addr)
)
+ dst_ep = sid.dst_ep
self.log.debug(
- "Routing SID `{sid}' to IP address `{ip}', " \
+ "Routing SID `{sid}' (endpoint `{ep}') to IP address `{ip}', " \
"MAC address `{mac}', port `{port}'".format(
- sid=str(sid), ip=ip_addr, mac=mac_addr, port=udp_port
+ sid=str(sid),
+ ep=dst_ep,
+ ip=ip_addr,
+ mac=mac_addr,
+ port=udp_port
)
)
ip_addr_int = int(netaddr.IPAddress(ip_addr))
mac_addr_int = int(netaddr.EUI(mac_addr))
- dst_ep = sid.dst_ep
sid_offset = 4 * dst_ep
def poke_and_trace(addr, data):
" Do a poke32() and log.trace() "