diff options
Diffstat (limited to 'tests/mobility_wlan0_bandwidth_1s1r/mobility.py')
| -rwxr-xr-x | tests/mobility_wlan0_bandwidth_1s1r/mobility.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mobility_wlan0_bandwidth_1s1r/mobility.py b/tests/mobility_wlan0_bandwidth_1s1r/mobility.py new file mode 100755 index 0000000..4f5a7a4 --- /dev/null +++ b/tests/mobility_wlan0_bandwidth_1s1r/mobility.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +def callback(simulator): + simulator.log("Network update!") + L=simulator.netmat["wlan0"]["latency"] + new_bw_wlan0=simulator.netmat["wlan0"]["bandwidth"]*2 + simulator.update_network({"wlan0":{"bandwidth":new_bw_wlan0, "latency":L, "is_wired":False}}) |
