From: Tony Mack <tmack@paris.CS.Princeton.EDU>
Date: Fri, 9 Dec 2011 20:31:05 +0000 (-0500)
Subject: interfaces elements in the manifest rspec must have a client_id
X-Git-Tag: sfa-2.0-5~17^2
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3df87e654a816efb7724824592b2e1a1467fb57a;p=sfa.git

interfaces elements in the manifest rspec must have a client_id
---

diff --git a/sfa/plc/plaggregate.py b/sfa/plc/plaggregate.py
index 1fed4558..1b061246 100644
--- a/sfa/plc/plaggregate.py
+++ b/sfa/plc/plaggregate.py
@@ -203,6 +203,9 @@ class PlAggregate:
                 interface['ipv4'] = interface['ip']
                 interface['component_id'] = PlXrn(auth=self.driver.hrn, 
                                                   interface='node%s:eth%s' % (node['node_id'], if_count)).get_urn()
+                # interfaces in the manifest need a client id
+                if slice:
+                    interface['client_id'] = "%s:%s" % (node['node_id'], if_id)            
                 rspec_node['interfaces'].append(interface)
                 if_count+=1