avoid configuring links for wireless networks
This commit is contained in:
parent
b7adbd289c
commit
62c0011caa
1 changed files with 5 additions and 2 deletions
|
@ -357,7 +357,9 @@ class Session:
|
||||||
)
|
)
|
||||||
interface = create_interface(node_one, net_one, interface_one)
|
interface = create_interface(node_one, net_one, interface_one)
|
||||||
node_one_interface = interface
|
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
|
# network to node
|
||||||
if node_two and net_one:
|
if node_two and net_one:
|
||||||
|
@ -368,7 +370,8 @@ class Session:
|
||||||
)
|
)
|
||||||
interface = create_interface(node_two, net_one, interface_two)
|
interface = create_interface(node_two, net_one, interface_two)
|
||||||
node_two_interface = interface
|
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)
|
link_config(net_one, interface, link_options)
|
||||||
|
|
||||||
# network to network
|
# network to network
|
||||||
|
|
Loading…
Add table
Reference in a new issue