mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-19 03:59:45 +00:00
Update all integration tests and debug platform parsing
This commit is contained in:
parent
17bfda379b
commit
be6dafcd10
61 changed files with 167 additions and 753 deletions
8
tests/mobility_eth0_bandwidth_1s1r/mobility.py
Executable file
8
tests/mobility_eth0_bandwidth_1s1r/mobility.py
Executable 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}})
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue