aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/example.py b/examples/example.py
index 56193c2..c884f3e 100755
--- a/examples/example.py
+++ b/examples/example.py
@@ -20,16 +20,17 @@ import rumba.log as log
log.set_logging_level('DEBUG')
-n1 = NormalDIF("n1", policies = {"rmt.pff": "lfa",
- "security-manager": "passwd"})
+
+n1 = NormalDIF("n1", policies = {"rmt.pff": {"lfa": {}},
+ "security-manager": {"passwd": {}}})
e1 = ShimEthDIF("e1")
a = Node("a",
difs = [n1, e1],
dif_registrations = {n1 : [e1]},
- registrations = {"a.crap" : [n1]},
- bindings = {"a.crap" : "/usr/bin/crap"})
+ registrations = {"a.thing" : [n1]},
+ bindings = {"a.thing" : "/usr/bin/thing"})
b = Node("b",
difs = [e1, n1],