From 09faab07366b1835955d132352a59c4c78b65651 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 13 Feb 2018 16:42:03 +0100 Subject: prototypes: Add policy support for Ouroboros This adds policy support for the Ouroboros plugin. --- rumba/prototypes/ouroboros.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rumba/prototypes/ouroboros.py') diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py index fd94f77..4379cbc 100644 --- a/rumba/prototypes/ouroboros.py +++ b/rumba/prototypes/ouroboros.py @@ -104,7 +104,12 @@ class Experiment(mod.Experiment): elif isinstance(ipcp.dif, mod.NormalDIF): cmd += " type normal" if ipcp.dif_bootstrapper: + pols = ipcp.dif.policy.get_policies() + for comp in pols: + for pol in pols[comp]: + cmd += " " + comp + " " + pol cmd += " layer " + ipcp.dif.name + " autobind" + cmd2 = "irm r n " + ipcp.name for dif_b in node.dif_registrations[ipcp.dif]: cmd2 += " layer " + dif_b.name -- cgit v1.2.3