Commit 5b14a488 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpMigrateNode and LUMigrateNode


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 0ae89533
......@@ -369,7 +369,7 @@ def MigrateNode(opts, args):
mode = constants.HT_MIGRATION_NONLIVE
else:
mode = opts.migration_mode
op = opcodes.OpMigrateNode(node_name=args[0], mode=mode)
op = opcodes.OpNodeMigrate(node_name=args[0], mode=mode)
SubmitOpCode(op, cl=cl, opts=opts)
......
......@@ -5912,7 +5912,7 @@ class LUInstanceMove(LogicalUnit):
(instance.name, target_node, msg))
class LUMigrateNode(LogicalUnit):
class LUNodeMigrate(LogicalUnit):
"""Migrate all instances from a node.
"""
......
......@@ -720,7 +720,7 @@ class OpPowercycleNode(OpCode):
]
class OpMigrateNode(OpCode):
class OpNodeMigrate(OpCode):
"""Migrate all instances from a node."""
OP_ID = "OP_NODE_MIGRATE"
OP_DSC_FIELD = "node_name"
......
......@@ -464,7 +464,7 @@ class R_2_nodes_name_migrate(baserlib.R_Generic):
else:
mode = self._checkStringVariable("mode", default=None)
op = opcodes.OpMigrateNode(node_name=node_name, mode=mode)
op = opcodes.OpNodeMigrate(node_name=node_name, mode=mode)
return baserlib.SubmitJob([op])
......
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