Revision 06c2fb4a 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.EmptyList,
1434
     ht.TListOf(ht.TItems([ht.TOr(ht.TInt, ht.TString),
1435
                           ht.TDictOf(ht.TElemOf([
1436
                                      constants.IDISK_SNAPSHOT_NAME]),
1437
                                      ht.TNonEmptyString)
1438
                          ])),
1439
    "Disks to snapshot"),
1440
    ]
1441
  OP_RESULT = ht.TNone
1442

  
1443

  
1428 1444
class OpInstanceRemove(OpCode):
1429 1445
  """Remove an instance."""
1430 1446
  OP_DSC_FIELD = "instance_name"

Also available in: Unified diff