aboutsummaryrefslogtreecommitdiff
path: root/examples/mouse.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mouse.py')
-rwxr-xr-x[-rw-r--r--]examples/mouse.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/examples/mouse.py b/examples/mouse.py
index 25e2487..5ff5c6a 100644..100755
--- a/examples/mouse.py
+++ b/examples/mouse.py
@@ -15,6 +15,10 @@ import rumba.prototypes.ouroboros as our
import rumba.prototypes.rlite as rl
import rumba.prototypes.irati as irati
+
+log.set_logging_level('DEBUG')
+
+
n01 = NormalDIF("n01")
e01 = ShimEthDIF("e01")
@@ -92,14 +96,14 @@ n = Node("n",
difs = [n01, e17],
dif_registrations = {n01 : [e17]})
-tb = jfed.Testbed(exp_name = "mouse2",
- cert_file = "/home/sander/cert.pem",
- username = "sander")
+tb = qemu.Testbed(exp_name = "mouse2")
exp = rl.Experiment(tb, nodes = [a, b, c, d, e, f, g, h, i, j, k, l, m, n])
print(exp)
-exp.swap_in()
-exp.install_prototype()
-exp.bootstrap_prototype()
+try:
+ exp.swap_in()
+ exp.bootstrap_prototype()
+finally:
+ exp.swap_out()