diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-10 21:58:15 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-10 21:58:15 +0200 |
| commit | d2a5ea6f539c5d6b737bd7bd37f45791220431a7 (patch) | |
| tree | c809877ee14f76eb754c981a631940a2b47d2f0d /tests/mobility_eth0_bandwidth_2s1r | |
| parent | 3fef2bbf4ba898fc932d515b864f4d9351798ef9 (diff) | |
Make one sharing matrix per wired interface
Diffstat (limited to 'tests/mobility_eth0_bandwidth_2s1r')
| -rwxr-xr-x | tests/mobility_eth0_bandwidth_2s1r/simulator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mobility_eth0_bandwidth_2s1r/simulator.py b/tests/mobility_eth0_bandwidth_2s1r/simulator.py index 7bed772..261000c 100755 --- a/tests/mobility_eth0_bandwidth_2s1r/simulator.py +++ b/tests/mobility_eth0_bandwidth_2s1r/simulator.py @@ -28,7 +28,7 @@ import numpy as np B=np.full((3,3),8) L=np.full((3,3),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("sender") @@ -38,6 +38,6 @@ 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,breakpoint_callback=callback,debug=True) |
