Commit f13973c4 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpSetNodeParams and LUSetNodeParams


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 73d565a3
......@@ -488,7 +488,7 @@ def PowerNode(opts, args):
opcodelist = []
if oob_command == constants.OOB_POWER_OFF:
opcodelist.append(opcodes.OpSetNodeParams(node_name=node, offline=True,
opcodelist.append(opcodes.OpNodeSetParams(node_name=node, offline=True,
auto_promote=opts.auto_promote))
opcodelist.append(opcodes.OpOobCommand(node_name=node, command=oob_command))
......@@ -680,7 +680,7 @@ def SetNodeParams(opts, args):
ToStderr("Please give at least one of the parameters.")
return 1
op = opcodes.OpSetNodeParams(node_name=args[0],
op = opcodes.OpNodeSetParams(node_name=args[0],
master_candidate=opts.master_candidate,
offline=opts.offline,
drained=opts.drained,
......
......@@ -4191,7 +4191,7 @@ class LUNodeAdd(LogicalUnit):
self.context.AddNode(new_node, self.proc.GetECId())
class LUSetNodeParams(LogicalUnit):
class LUNodeSetParams(LogicalUnit):
"""Modifies the parameters of a node.
@cvar _F2R: a dictionary from tuples of flags (mc, drained, offline)
......
......@@ -691,7 +691,7 @@ class OpRepairNodeStorage(OpCode):
]
class OpSetNodeParams(OpCode):
class OpNodeSetParams(OpCode):
"""Change the parameters of a node."""
OP_ID = "OP_NODE_SET_PARAMS"
OP_DSC_FIELD = "node_name"
......
......@@ -395,7 +395,7 @@ class R_2_nodes_name_role(baserlib.R_Generic):
else:
raise http.HttpBadRequest("Can't set '%s' role" % role)
op = opcodes.OpSetNodeParams(node_name=node_name,
op = opcodes.OpNodeSetParams(node_name=node_name,
master_candidate=candidate,
offline=offline,
drained=drained,
......
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