Commit 32f93223 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Add query function for exports

Reviewed-by: iustinp
parent 24fc781f
......@@ -231,6 +231,11 @@ class ClientOps:
op = opcodes.OpQueryNodes(names=names, output_fields=fields)
return self._Query(op)
elif method == luxi.REQ_QUERY_EXPORTS:
nodes = args
op = opcodes.OpQueryExports(nodes=nodes)
return self._Query(op)
else:
raise ValueError("Invalid operation")
......
......@@ -49,6 +49,7 @@ REQ_ARCHIVE_JOB = "ArchiveJob"
REQ_QUERY_JOBS = "QueryJobs"
REQ_QUERY_INSTANCES = "QueryInstances"
REQ_QUERY_NODES = "QueryNodes"
REQ_QUERY_EXPORTS = "QueryExports"
DEF_CTMO = 10
DEF_RWTO = 60
......@@ -296,4 +297,7 @@ class Client(object):
def QueryNodes(self, names, fields):
return self.CallMethod(REQ_QUERY_NODES, (names, fields))
def QueryExports(self, nodes):
return self.CallMethod(REQ_QUERY_EXPORTS, nodes)
# TODO: class Server(object)
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