aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes/ouroboros.py
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-07-13 11:15:27 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-07-27 07:50:38 +0200
commitbb9004b851dbea68a3cec57a957593c730119fe8 (patch)
tree2a70953e8c6803f38c1acebb467746865a5ff989 /rumba/prototypes/ouroboros.py
parent88c6e85ae0554b7f95987a8964f8925b1226c0dc (diff)
downloadrumba-bb9004b851dbea68a3cec57a957593c730119fe8.tar.gz
rumba-bb9004b851dbea68a3cec57a957593c730119fe8.zip
elements: Remove distinction between mgmt and dt flows
This will remove the distinction between mgmt and dt flows since Rumba allows setting up connections between IPCP at a very high level anyway.
Diffstat (limited to 'rumba/prototypes/ouroboros.py')
-rw-r--r--rumba/prototypes/ouroboros.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py
index 5556d42..03f94eb 100644
--- a/rumba/prototypes/ouroboros.py
+++ b/rumba/prototypes/ouroboros.py
@@ -94,7 +94,7 @@ class Experiment(mod.Experiment):
git_repo='git://ouroboros.ilabt.imec.be/ouroboros',
git_branch='master',
enrollment_strategy='minimal',
- dt_strategy='full-mesh'):
+ flows_strategy='full-mesh'):
"""
Initializes the experiment class.
@@ -103,7 +103,7 @@ class Experiment(mod.Experiment):
:param git_repo: The git repository to use for installation.
:param git_branch: The branch of the git repository to use.
:param enrollment_strategy: Can be 'full-mesh', 'minimal' or 'manual'.
- :param dt_strategy: For data flows, 'full-mesh', 'minimal' or 'manual'.
+ :param strategy: For flows, 'full-mesh', 'minimal' or 'manual'.
"""
mod.Experiment.__init__(
self,
@@ -112,7 +112,7 @@ class Experiment(mod.Experiment):
git_repo,
git_branch,
enrollment_strategy=enrollment_strategy,
- dt_strategy=dt_strategy,
+ flows_strategy=flows_strategy,
server_decorator=OurServer
)
self.r_ipcps = dict()
@@ -263,11 +263,10 @@ class Experiment(mod.Experiment):
e['enrollee'].node.execute_commands(cmds, time_out=None)
- def setup_flows(self, el, comp):
+ def setup_flows(self, el):
for e in el:
ipcp = e['src']
- cmd = "irm i conn n " + ipcp.name + " comp " + \
- comp + " dst " + e['dst'].name
+ cmd = "irm i conn n " + ipcp.name + " dst " + e['dst'].name
ipcp.node.execute_command(cmd, time_out=None)
@@ -288,12 +287,10 @@ class Experiment(mod.Experiment):
self.create_ipcps()
logger.info("Enrolling IPCPs...")
- for element, mgmt, dt in zip(self.enrollments,
- self.mgmt_flows,
- self.dt_flows):
- self.enroll_dif(element)
- self.setup_flows(mgmt, comp="mgmt")
- self.setup_flows(dt, comp="dt")
+ for enrolls, flows in zip(self.enrollments,
+ self.flows):
+ self.enroll_dif(enrolls)
+ self.setup_flows(flows)
logger.info("All done, have fun!")