예제 #1
0
파일: openvz.py 프로젝트: joanmarkt/ToMaTo
	def toDict(self, auth):
		res = Device.toDict(self, auth)
		res["attrs"].update(vmid=self.getVmid(), vnc_port=self.getVncPort(), template=self.getTemplate(),
			gateway4=self.getAttribute("gateway4"), gateway6=self.getAttribute("gateway6"))
		if auth:
			res["attrs"].update(root_password=self.getRootPassword(), vnc_password = self.vncPassword())
		return res
예제 #2
0
파일: prog.py 프로젝트: david-hock/ToMaTo
	def toDict(self, auth):
		res = Device.toDict(self, auth)
		res["attrs"].update(vnc_port=self.getVncPort(), template=self.getTemplate(), args=self.getArgs())
		if auth:
			res["attrs"].update(vnc_password = self.vncPassword())
		return res				
예제 #3
0
파일: kvm.py 프로젝트: m3z/ToMaTo
	def toDict(self, auth):
		res = Device.toDict(self, auth)
		res["attrs"].update(template=self.getConfiguredTemplate())
		if auth:
			res["attrs"].update(vnc_password=self.vncPassword(), vnc_port=self.getVncPort())
		return res