aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes/ouroboros.py
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-05-31 14:55:56 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-06-01 10:29:23 +0200
commitebdd8624528275311396f90e08632c550cb64a71 (patch)
treed1c200297d03b506d21c38e6274b616ebb12e7b4 /rumba/prototypes/ouroboros.py
parentbd3f71c4469ce173a07f44ecada85025ff761767 (diff)
downloadrumba-ebdd8624528275311396f90e08632c550cb64a71.tar.gz
rumba-ebdd8624528275311396f90e08632c550cb64a71.zip
storyboard: Allow destroying of a DIF
This allows the destroying of a DIF while the experiment is running. This to ease the emulation of failures in the network.
Diffstat (limited to 'rumba/prototypes/ouroboros.py')
-rw-r--r--rumba/prototypes/ouroboros.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py
index 1402180..a7a7fc9 100644
--- a/rumba/prototypes/ouroboros.py
+++ b/rumba/prototypes/ouroboros.py
@@ -246,3 +246,7 @@ class Experiment(mod.Experiment):
if isinstance(self.testbed, local.Testbed):
logger.info("Killing IRMd...")
subprocess.check_call('sudo killall -15 irmd'.split())
+
+ def destroy_dif(self, dif):
+ for ipcp in dif.ipcps:
+ ipcp.node.execute_command('irm i d n ' + ipcp.name)