From ebdd8624528275311396f90e08632c550cb64a71 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 31 May 2018 14:55:56 +0200 Subject: 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. --- rumba/prototypes/ouroboros.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rumba/prototypes/ouroboros.py') 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) -- cgit v1.2.3