Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -444,6 +444,13 @@ class OpMigrateNode(OpCode): ...@@ -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 # instance opcodes
class OpCreateInstance(OpCode): class OpCreateInstance(OpCode):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment