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

Add a new opcode for node evacuation



We add this as a new opcode since we don't want to alter the behaviour
of current opcodes/lus.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 823a72bc
......@@ -444,6 +444,13 @@ class OpMigrateNode(OpCode):
]
class OpNodeEvacuationStrategy(OpCode):
"""Compute the evacuation strategy for a list of nodes."""
OP_ID = "OP_NODE_EVAC_STRATEGY"
OP_DSC_FIELD = "nodes"
__slots__ = ["nodes", "iallocator", "remote_node"]
# instance opcodes
class OpCreateInstance(OpCode):
......
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