diff options
author | Vincenzo Maffione <v.maffione@gmail.com> | 2017-06-15 14:04:08 +0000 |
---|---|---|
committer | Vincenzo Maffione <v.maffione@gmail.com> | 2017-06-15 14:04:08 +0000 |
commit | f804a189255d30d8367731d5f6b1382876aed891 (patch) | |
tree | 62faeab8bb79a73ba499597154ce5abadbab75eb /examples/example.py | |
parent | c345d1b54f8e78d7c6e457b62e6b925a4daf6190 (diff) | |
parent | e36189f8ba98d8a1b254a8dd300f59d5c12a9430 (diff) | |
download | rumba-f804a189255d30d8367731d5f6b1382876aed891.tar.gz rumba-f804a189255d30d8367731d5f6b1382876aed891.zip |
Merge branch 'policies' into 'master'
Add per-node policy management
See merge request !44
Diffstat (limited to 'examples/example.py')
-rwxr-xr-x | examples/example.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/example.py b/examples/example.py index 1acc883..567852f 100755 --- a/examples/example.py +++ b/examples/example.py @@ -19,8 +19,11 @@ 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") |