From c3d66b2da3c2f3e994ef83298fe0190f4cdb00dc Mon Sep 17 00:00:00 2001 From: Vincenzo Maffione Date: Sun, 19 Mar 2017 16:14:12 +0100 Subject: model: compute_ipcps(): create IPCP instances --- rumba/model.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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, ... -- cgit v1.2.3