Update all integration tests and debug platform parsing

This commit is contained in:
Loic Guegan 2022-09-13 15:49:38 +02:00
parent 17bfda379b
commit be6dafcd10
61 changed files with 167 additions and 753 deletions

View file

@ -0,0 +1,8 @@
#!/usr/bin/env python
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":simulator.netmat["wlan0"]["latency"], "is_wired":False}, "eth0":{"bandwidth":new_bw_eth0, "latency":simulator.netmat["eth0"]["latency"], "is_wired":True}})