From be6dafcd106ff9c50c9fa316685874773f6b251e Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 13 Sep 2022 15:49:38 +0200 Subject: Update all integration tests and debug platform parsing --- tests/mobility_wlan0_bandwidth_1s1r/mobility.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tests/mobility_wlan0_bandwidth_1s1r/mobility.py (limited to 'tests/mobility_wlan0_bandwidth_1s1r/mobility.py') 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}}) -- cgit v1.2.3