aboutsummaryrefslogtreecommitdiff
path: root/main.py
blob: 3200f77226e579ecb53e721cb4c489cdff9a2f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python

# An example script using rhumba.py

from rhumba import *

e1 = ShimEthDIF("e1")

a = Node("a",
         difs = [e1],
         registrations = {"cbr.a" : [e1]},
         bindings = {"cbr.a" : "/usr/bin/cbr"})

b = Node("b",
         difs = [e1])

tb = EmulabTestbed(exp_name = "test001",
                   username = "sander",
                   url = "wall2.ilabt.iminds.be")

exp = OuroborosExperiment(tb, nodes = [a, b])

print(exp)

exp.run()