aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rumba/prototypes/ouroboros.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py
index 022c931..643754f 100644
--- a/rumba/prototypes/ouroboros.py
+++ b/rumba/prototypes/ouroboros.py
@@ -65,9 +65,12 @@ class OurServer(sb.Server):
# Build register command
r_cmd = 'irm r n %s ' % (self.id,)
if len(self.difs) == 0:
- r_cmd += ' '.join('layer %s' % (layer.name,) for layer in node.difs)
+ r_cmd += ' '.join('ipcp %s' % (ipcp.name,) for ipcp in node.ipcps)
else:
- r_cmd += ' '.join('layer %s' % (layer.name,) for layer in self.difs)
+ for dif in self.difs:
+ for ipcp in node.ipcps:
+ if ipcp.dif is dif:
+ r_cmd += 'ipcp %s' % (ipcp.name,)
r_cmd += ' && '
# Add register command