+ # 5. collect additional information to start container
+ cenv = dict()
+ # 5.1 inject descriptor based start/stop commands into env (overwrite)
+ VNFD_CMD_START = u.get("vm_cmd_start")
+ VNFD_CMD_STOP = u.get("vm_cmd_stop")
+ if VNFD_CMD_START and not VNFD_CMD_START == "None":
+ LOG.info("Found 'vm_cmd_start'='{}' in VNFD.".format(VNFD_CMD_START) +
+ " Overwriting SON_EMU_CMD.")
+ cenv["SON_EMU_CMD"] = VNFD_CMD_START
+ if VNFD_CMD_STOP and not VNFD_CMD_STOP == "None":
+ LOG.info("Found 'vm_cmd_start'='{}' in VNFD.".format(VNFD_CMD_STOP) +
+ " Overwriting SON_EMU_CMD_STOP.")
+ cenv["SON_EMU_CMD_STOP"] = VNFD_CMD_STOP
+
+ # 6. do the dc.startCompute(name="foobar") call to run the container