cloud-init file with proper descriptors

parent 7874e437
......@@ -47,11 +47,11 @@ def createCloudInitFile(cip, dpid, mode, site='local'):
else:
cmdlist.append("cat vm-cloudinit-brocluster.file > cloud-init.file")
cmdlist.append("echo \'sudo echo \"CONTROLLER_IP: \'%s\'\" > %s\' >> cloud-init.file" % (cip,
cmdlist.append("echo \'sudo echo \"CONTROLLER_IP: \\\"%s\\\"\" > %s\' >> cloud-init.file" % (cip,
outputfile))
cmdlist.append("echo \'sudo echo \"SWITCH_DPID: \'%s\'\" >> %s\' >> cloud-init.file" % (dpid,
cmdlist.append("echo \'sudo echo \"SWITCH_DPID: \\\"%s\\\"\" >> %s\' >> cloud-init.file" % (dpid,
outputfile))
cmdlist.append("echo \'sudo echo \"SITE: \'%s\'\" >> %s\' >> cloud-init.file" % (site,
cmdlist.append("echo \'sudo echo \"SITE: \\\"%s\\\"\" >> %s\' >> cloud-init.file" % (site,
outputfile))
cmdlist.append("cat cloud-init.file")
#cmdlist.append("rm cloud-init.file")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment