Commit 4f6014d4 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Adding RPC infrastructure to call oob


Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent b2f29800
......@@ -1176,6 +1176,16 @@ class RpcRunner(object):
"""
return cls._StaticMultiNodeCall(node_list, "write_ssconf_files", [values])
@_RpcTimeout(_TMO_NORMAL)
def call_run_oob(self, node, oob_program, command, remote_node):
"""Runs OOB.
This is a single-node call.
"""
return self._SingleNodeCall(node, "run_oob", [oob_program, command,
remote_node])
@_RpcTimeout(_TMO_FAST)
def call_os_diagnose(self, node_list):
"""Request a diagnose of OS definitions.
......
......@@ -726,6 +726,14 @@ class NodeHttpServer(http.server.HttpServer):
"""
return backend.GetMasterInfo()
@staticmethod
def perspective_run_oob(params):
"""Runs oob on node.
"""
return serializer.LoadJson(backend.RunOob(params[0], params[1], params[2],
params[3]))
@staticmethod
def perspective_write_ssconf_files(params):
"""Write ssconf files.
......
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