aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco Capitani <[email protected]>2018-03-26 16:52:30 +0200
committerMarco Capitani <[email protected]>2018-03-26 16:56:14 +0200
commit9e499fec0ca6e2940717bce45388c59960f9bdc3 (patch)
tree307b7636cccbc7f38f3e14acb0ba616e05307c80 /examples
parent81dfe735a72683b7dc87f329d9a25a1868fe74f1 (diff)
downloadrumba-9e499fec0ca6e2940717bce45388c59960f9bdc3.tar.gz
rumba-9e499fec0ca6e2940717bce45388c59960f9bdc3.zip
model: make DIFs scriptable
DIFs instances can now be referenced inside .rsb files. Also changed Node.set_link_state function to accept a DIF as opposed to an IPCP, since IPCPs are not given a name nor mentioned is user scripts.
Diffstat (limited to 'examples')
-rw-r--r--examples/example-script.rsb4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/example-script.rsb b/examples/example-script.rsb
index 8b5c714..f00ff42 100644
--- a/examples/example-script.rsb
+++ b/examples/example-script.rsb
@@ -33,7 +33,9 @@ echo2, 18 &ev4| $sb run_client_of $Server.server_b
1.2 &ev5| run_client_of $Server.server_c
# Events need _not_ be in temporal order
# if no object ($ handle) is provided, the storyboard
-# is assumed as the object/
+# is assumed as the object
+
+14 | $Node.node_a set_link_state $ShimEthDIF.e1 'up'