Revision 3a9fe2bc lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
1425 | 1425 |
OP_RESULT = ht.TNone |
1426 | 1426 |
|
1427 | 1427 |
|
1428 |
class OpInstanceSnapshot(OpCode): |
|
1429 |
"""Snapshot an instance.""" |
|
1430 |
OP_DSC_FIELD = "instance_name" |
|
1431 |
OP_PARAMS = [ |
|
1432 |
_PInstanceName, |
|
1433 |
("disks", ht.NoDefault, |
|
1434 |
ht.TListOf(ht.TItems([ht.TString, |
|
1435 |
ht.TDictOf(ht.TElemOf("snapshot_name"), |
|
1436 |
ht.TMaybeString) |
|
1437 |
])), |
|
1438 |
"Disks to snapshot"), |
|
1439 |
] |
|
1440 |
OP_RESULT = ht.TNone |
|
1441 |
|
|
1442 |
|
|
1428 | 1443 |
class OpInstanceRemove(OpCode): |
1429 | 1444 |
"""Remove an instance.""" |
1430 | 1445 |
OP_DSC_FIELD = "instance_name" |
Also available in: Unified diff