aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/periph_manager/n310.py
diff options
context:
space:
mode:
authorsugandhagupta <sugandha.gupta@ettus.com>2017-06-07 17:29:48 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commit113e4256135f812b022e83d2474607e7cd2ed399 (patch)
tree44bcba5ed99efea1203bea599a170456c4f8e46a /mpm/python/usrp_mpm/periph_manager/n310.py
parente7f7f06b498eed374a62fa15894747dd1acf892d (diff)
downloaduhd-113e4256135f812b022e83d2474607e7cd2ed399.tar.gz
uhd-113e4256135f812b022e83d2474607e7cd2ed399.tar.bz2
uhd-113e4256135f812b022e83d2474607e7cd2ed399.zip
n3xx: added args for ethernet crossover path
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/n310.py')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n310.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py
index 805ffd209..7b403a830 100644
--- a/mpm/python/usrp_mpm/periph_manager/n310.py
+++ b/mpm/python/usrp_mpm/periph_manager/n310.py
@@ -154,6 +154,11 @@ class n310(PeriphManagerBase):
}
for ifname, table in iteritems(self._eth_dispatchers):
table.set_ipv4_addr(self._chdr_interfaces[ifname]['ip_addr'])
+ if 'forward_eth' in args or 'forward_bcast' in args:
+ table.set_forward_policy(
+ args.get('forward_eth', False),
+ args.get('forward_bcast', False)
+ )
if 'preload_ethtables' in args:
self._preload_ethtables(
self._eth_dispatchers,