diff options
author | Andrew Lynch <andrew.lynch@ni.com> | 2020-01-28 15:17:10 -0800 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-07-16 10:00:12 -0500 |
commit | eadbc21982d6a12bc52300e6855af368b7917574 (patch) | |
tree | 55e871cdadde3699366fcfe1ece2895c9b9a8ffa /mpm/python/usrp_mpm/xports/xportmgr_udp.py | |
parent | 40b563387b0af059a2d565d4cba958cf5e0772fb (diff) | |
download | uhd-eadbc21982d6a12bc52300e6855af368b7917574.tar.gz uhd-eadbc21982d6a12bc52300e6855af368b7917574.tar.bz2 uhd-eadbc21982d6a12bc52300e6855af368b7917574.zip |
mpm: Add support for internal Ethernet interface
Diffstat (limited to 'mpm/python/usrp_mpm/xports/xportmgr_udp.py')
-rw-r--r-- | mpm/python/usrp_mpm/xports/xportmgr_udp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/xports/xportmgr_udp.py b/mpm/python/usrp_mpm/xports/xportmgr_udp.py index f77e2ce41..365e73e5d 100644 --- a/mpm/python/usrp_mpm/xports/xportmgr_udp.py +++ b/mpm/python/usrp_mpm/xports/xportmgr_udp.py @@ -9,6 +9,7 @@ UDP Transport manager """ from six import iteritems, itervalues +from usrp_mpm import prefs from usrp_mpm.ethdispatch import EthDispatcherCtrl from usrp_mpm.sys_utils import net @@ -131,6 +132,10 @@ class XportMgrUDP: self._eth_dispatchers[iface].set_ipv4_addr( self._chdr_ifaces[iface]['ip_addr'] ) + if self.iface_config[iface]['type'] == 'internal': + #TODO: Get MAC address from EEPROM + internal_ip_addr = self.get_internal_interface_address(iface) + self._eth_dispatchers[iface].setup_internal_interface('00:01:02:03:04:05', internal_ip_addr) def init(self, args): """ |