aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/example.py b/examples/example.py
index 8a68aab..567852f 100755
--- a/examples/example.py
+++ b/examples/example.py
@@ -20,8 +20,10 @@ import rumba.log as log
log.set_logging_level('DEBUG')
-n1 = NormalDIF("n1", policies = {"rmt.pff": {"lfa": {}},
- "security-manager": {"passwd": {}}})
+n1 = NormalDIF("n1")
+
+n1.add_policy("rmt.pff", "lfa")
+n1.add_policy("security-manager", "passwd")
e1 = ShimEthDIF("e1")