X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/afee08797af900e1c0bf7d6255f4c215866daae2..f02881e0a1c6792bcb7accc3b15e64074845d7d8:/lib/opcodes.py diff --git a/lib/opcodes.py b/lib/opcodes.py index 32edfaa..36939d4 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -413,6 +413,19 @@ class OpFailoverInstance(OpCode): __slots__ = ["instance_name", "ignore_consistency"] +class OpMigrateInstance(OpCode): + """Migrate an instance. + + This migrates (without shutting down an instance) to its secondary + node. + + @ivar instance_name: the name of the instance + + """ + OP_ID = "OP_INSTANCE_MIGRATE" + __slots__ = ["instance_name", "live", "cleanup"] + + class OpConnectConsole(OpCode): """Connect to an instance's console.""" OP_ID = "OP_INSTANCE_CONSOLE"