interfaces elements in the manifest rspec must have a client_id
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 9 Dec 2011 20:31:05 +0000 (15:31 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 9 Dec 2011 20:31:13 +0000 (15:31 -0500)
sfa/plc/plaggregate.py

index 1fed455..1b06124 100644 (file)
@@ -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