Esempio n. 1
0
	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
Esempio n. 2
0
	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				
Esempio n. 3
0
File: kvm.py Progetto: 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