aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincenzo Maffione <[email protected]>2017-03-19 16:14:12 +0100
committerVincenzo Maffione <[email protected]>2017-03-19 16:14:12 +0100
commitc3d66b2da3c2f3e994ef83298fe0190f4cdb00dc (patch)
tree3ca1f0b680f6708e178a1ec22a02a4244b53f6dd
parent450523ca3741a55c0663cca6f6a84afa6e084f00 (diff)
downloadrumba-c3d66b2da3c2f3e994ef83298fe0190f4cdb00dc.tar.gz
rumba-c3d66b2da3c2f3e994ef83298fe0190f4cdb00dc.zip
model: compute_ipcps(): create IPCP instances
-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, ...