def newtickets(self, slice, ntickets, leaselen, ips): ctx = clictxinit(self.cert, self.key, self.cacert) s = ServerProxy("https://%s:%d" % (self.host, self.sslport), SSL_Transport(ctx)) params = { "slice": slice, "ntickets": ntickets, "leaselen": leaselen, "ips": ips } return s.newtickets(params)
def newtickets(self, slice, ntickets, leaselen, ips): ctx = clictxinit(self.cert, self.key, self.cacert) s = ServerProxy("https://%s:%d" % (self.host, self.sslport), SSL_Transport(ctx)) params = { "slice" : slice, "ntickets" : ntickets, "leaselen" : leaselen, "ips" : ips } return s.newtickets(params)
def newleasevm(self, ticketdata, privatekey, publickey): ctx = clictxinit(self.cert, self.key, self.cacert) s = ServerProxy("https://%s:%d" % (self.host, self.sslport), SSL_Transport(ctx)) params = {"ticketdata": ticketdata, "privatekey": privatekey, "publickey": publickey} return s.newleasevm(params)
def newlease(self, ticketdata): ctx = clictxinit(self.cert, self.key, self.cacert) s = ServerProxy("https://%s:%d" % (self.host, self.sslport), SSL_Transport(ctx)) params = {"ticketdata": ticketdata} return s.newlease(params)
def nukekeys(self, slice): ctx = clictxinit(self.cert, self.key, self.cacert) s = ServerProxy("https://%s:%d" % (self.host, self.sslport), SSL_Transport(ctx)) params = {"slice": slice} return s.nukekeys(params)
def delkey(self, slice, key): ctx = clictxinit(self.cert, self.key, self.cacert) s = ServerProxy("https://%s:%d" % (self.host, self.sslport), SSL_Transport(ctx)) params = {"slice": slice, "key": key} return s.delkey(params)