From a95c3b376053ed00f0e7184dbd228598a9aaf50f Mon Sep 17 00:00:00 2001
From: Marco Capitani <m.capitani@nextworks.it>
Date: Wed, 28 Mar 2018 15:46:38 +0200
Subject: 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
---
 examples/example-script.rsb | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'examples')

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
+
 
 
 
-- 
cgit v1.2.3