aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-03-28 15:46:38 +0200
committerMarco Capitani <m.capitani@nextworks.it>2018-03-28 16:30:06 +0200
commita95c3b376053ed00f0e7184dbd228598a9aaf50f (patch)
tree994e3ccbb7ce8baf08dc9b934c63beefa87215f5 /examples
parent9d42e50b99993c3fa5b9724c09dd28be4c528add (diff)
downloadrumba-a95c3b376053ed00f0e7184dbd228598a9aaf50f.tar.gz
rumba-a95c3b376053ed00f0e7184dbd228598a9aaf50f.zip
model: make link quality changes scriptable
Added method accepting only ints and floats to allow scripting link quality changes (see example-script additions) Also added general purpose `sb.schedule_action` method
Diffstat (limited to 'examples')
-rw-r--r--examples/example-script.rsb4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/example-script.rsb b/examples/example-script.rsb
index f00ff42..1d49a66 100644
--- a/examples/example-script.rsb
+++ b/examples/example-script.rsb
@@ -37,6 +37,10 @@ echo2, 18 &ev4| $sb run_client_of $Server.server_b
14 | $Node.node_a set_link_state $ShimEthDIF.e1 'up'
+16 | $ShimEthDIF.e1 set_delay 30 10
+
+28 | $ShimEthDIF.e1 set_loss 2
+