summaryrefslogtreecommitdiff
path: root/tests/mobility_wlan0_bandwidth_1s1r
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-06-10 21:58:15 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-06-10 21:58:15 +0200
commitd2a5ea6f539c5d6b737bd7bd37f45791220431a7 (patch)
treec809877ee14f76eb754c981a631940a2b47d2f0d /tests/mobility_wlan0_bandwidth_1s1r
parent3fef2bbf4ba898fc932d515b864f4d9351798ef9 (diff)
Make one sharing matrix per wired interface
Diffstat (limited to 'tests/mobility_wlan0_bandwidth_1s1r')
-rwxr-xr-xtests/mobility_wlan0_bandwidth_1s1r/simulator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mobility_wlan0_bandwidth_1s1r/simulator.py b/tests/mobility_wlan0_bandwidth_1s1r/simulator.py
index 471f73b..3f9dcf7 100755
--- a/tests/mobility_wlan0_bandwidth_1s1r/simulator.py
+++ b/tests/mobility_wlan0_bandwidth_1s1r/simulator.py
@@ -26,7 +26,7 @@ import numpy as np
B=np.full((2,2),8)
L=np.full((2,2),0)
-s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L},"eth0":{"bandwidth":B, "latency":L}})
+s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False}, "eth0":{"bandwidth":B, "latency":L, "is_wired":True}})
s.create_node("sender")
s.create_node("receiver")
@@ -35,7 +35,7 @@ def callback(simulator):
simulator.log("Network update!")
new_bw_wlan0=simulator.netmat["wlan0"]["bandwidth"]*2
new_bw_eth0=simulator.netmat["eth0"]["bandwidth"]*2
- simulator.update_network({"wlan0":{"bandwidth":new_bw_wlan0, "latency":L},"eth0":{"bandwidth":new_bw_eth0, "latency":L}})
+ simulator.update_network({"wlan0":{"bandwidth":new_bw_wlan0, "latency":L, "is_wired":False}, "eth0":{"bandwidth":new_bw_eth0, "latency":L, "is_wired":True}})
s.run(breakpoints_every=1/2,breakpoint_callback=callback)