mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-07 02:26:28 +02:00
9 lines
431 B
Python
9 lines
431 B
Python
![]() |
#!/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}})
|
||
|
|