From 62c0011caa0cbaf085d9cc0f4581d787a9952b18 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Tue, 28 Apr 2020 09:35:21 -0700 Subject: [PATCH] avoid configuring links for wireless networks --- daemon/core/emulator/session.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daemon/core/emulator/session.py b/daemon/core/emulator/session.py index 7d1d3228..95aa7c0b 100644 --- a/daemon/core/emulator/session.py +++ b/daemon/core/emulator/session.py @@ -357,7 +357,9 @@ class Session: ) interface = create_interface(node_one, net_one, interface_one) node_one_interface = interface - link_config(net_one, interface, link_options) + wireless_net = isinstance(net_one, (EmaneNet, WlanNode)) + if not wireless_net: + link_config(net_one, interface, link_options) # network to node if node_two and net_one: @@ -368,7 +370,8 @@ class Session: ) interface = create_interface(node_two, net_one, interface_two) node_two_interface = interface - if not link_options.unidirectional: + wireless_net = isinstance(net_one, (EmaneNet, WlanNode)) + if not link_options.unidirectional and not wireless_net: link_config(net_one, interface, link_options) # network to network