- if self.config:
- if 'wilab2' in self.config['sm']:
- resource['client_id'] = "PC"
- resource['sliver_type'] = "raw-pc"
+# Commented Lucia, only works with config file, not the case for nepi
+# if self.config:
+# if 'wilab2' in self.config['sm']:
+# resource['client_id'] = "PC"
+# resource['sliver_type'] = "raw-pc"
+ if 'wilab2' in urn:
+ resource['client_id'] = "node%s" % cardinal
+ resource['sliver_type'] = "raw-pc"
+ top_auth = resource_hrn.replace("\\", "").split('.')
+ top_auth.pop()
+ top_auth = '.'.join(top_auth)
+ cm = urn.split("+")
+ resource['component_manager_id'] = "%s+%s+authority+cm" % (cm[0],top_auth)
+ cardinal += 1