mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-07 02:26:28 +02:00
8 lines
271 B
Python
8 lines
271 B
Python
![]() |
#!/usr/bin/env python
|
||
|
|
||
|
def callback(simulator):
|
||
|
simulator.log("Network update!")
|
||
|
new_bw_eth0=simulator.netmat["eth0"]["bandwidth"]*2
|
||
|
simulator.update_network({"eth0":{"bandwidth":new_bw_eth0, "latency":simulator.netmat["eth0"]["latency"], "is_wired":True}})
|
||
|
|