- # 1. parse descriptors
- # 2. do the corresponding dc.startCompute(name="foobar") calls
- # 3. store references to the compute objects in self.instantiations
- pass
+ instance_uuid = str(uuid.uuid4())
+ # 1. parse descriptors and get name of each docker container
+ for vnfd in self.vnfds.itervalues():
+ for u in vnfd.get("virtual_deployment_units"):
+ docker_name = u.get("vm_image")
+ # 2. do the corresponding dc.startCompute(name="foobar") calls
+ print "start %r" % docker_name
+ print "available dcs: %r " % GK.dcs
+ # 3. store references to the compute objects in self.instantiations
+ return instance_uuid