projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
_CheckInstanceBridgesExist: move to NIC parameters
[ganeti-local]
/
lib
/
opcodes.py
diff --git
a/lib/opcodes.py
b/lib/opcodes.py
index
5be660b
..
c40d51b
100644
(file)
--- a/
lib/opcodes.py
+++ b/
lib/opcodes.py
@@
-262,6
+262,7
@@
class OpSetClusterParams(OpCode):
"enabled_hypervisors",
"hvparams",
"beparams",
"enabled_hypervisors",
"hvparams",
"beparams",
+ "nicparams",
"candidate_pool_size",
]
"candidate_pool_size",
]
@@
-340,6
+341,16
@@
class OpSetNodeParams(OpCode):
"drained",
]
"drained",
]
+
+class OpPowercycleNode(OpCode):
+ """Tries to powercycle a node."""
+ OP_ID = "OP_NODE_POWERCYCLE"
+ OP_DSC_FIELD = "node_name"
+ __slots__ = [
+ "node_name",
+ "force",
+ ]
+
# instance opcodes
class OpCreateInstance(OpCode):
# instance opcodes
class OpCreateInstance(OpCode):
@@
-382,7
+393,7
@@
class OpStartupInstance(OpCode):
"""Startup an instance."""
OP_ID = "OP_INSTANCE_STARTUP"
OP_DSC_FIELD = "instance_name"
"""Startup an instance."""
OP_ID = "OP_INSTANCE_STARTUP"
OP_DSC_FIELD = "instance_name"
- __slots__ = ["instance_name", "force"]
+ __slots__ = ["instance_name", "force", "hvparams", "beparams"]
class OpShutdownInstance(OpCode):
class OpShutdownInstance(OpCode):