diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-13 15:49:38 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-13 15:49:38 +0200 |
| commit | be6dafcd106ff9c50c9fa316685874773f6b251e (patch) | |
| tree | dfa3cc1e7327bbfc636662b165c2f7822c585ca8 /tests/mobility_wlan0_bandwidth_1s1r/mobility.py | |
| parent | 17bfda379be17acb20abfb7f0c9231d36ef8766d (diff) | |
Update all integration tests and debug platform parsing
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}}) |
