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
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
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