aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2017-06-13 12:44:04 +0200
committerMarco Capitani <m.capitani@nextworks.it>2017-06-13 12:44:04 +0200
commite36189f8ba98d8a1b254a8dd300f59d5c12a9430 (patch)
treee815229b91e78a13cc96ec7fc3b18015b9544389 /examples
parent457977f337a47caddf8788e1d4e1d1736f2a6ccb (diff)
downloadrumba-e36189f8ba98d8a1b254a8dd300f59d5c12a9430.tar.gz
rumba-e36189f8ba98d8a1b254a8dd300f59d5c12a9430.zip
IRATI: added per-node policy support, and revamped policy data model.
additional: + fixed small bug rlated to vhost checking in qemu. + example scripts now correctly use policies.
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")