aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rumba/model.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/rumba/model.py b/rumba/model.py
index f34df52..93b901b 100644
--- a/rumba/model.py
+++ b/rumba/model.py
@@ -477,7 +477,15 @@ class Experiment:
e['lower_dif']))
def compute_ipcps(self):
- pass
+ # For each node, compute the required IPCP instances
+ for node in self.nodes:
+ node.ipcps = []
+ for dif in node.difs:
+ ipcp = IPCP(name = '%s.%s.IPCP' % (dif.name, node.name),
+ node = node, dif = dif)
+ node.ipcps.append(ipcp)
+
+ print("IPCP for node %s: %s" % (node.name, node.ipcps))
# Examine the nodes and DIFs, compute the registration nd enrollment
# order, the list of IPCPs to create, registrations, ...