Revision d61df03e lib/opcodes.py

b/lib/opcodes.py
444 444
  """
445 445
  OP_ID = "OP_TEST_DELAY"
446 446
  __slots__ = ["duration", "on_master", "on_nodes"]
447

  
448

  
449
class OpTestAllocator(OpCode):
450
  """Allocator framework testing.
451

  
452
  This opcode has two modes:
453
    - gather and return allocator input for a given mode (allocate new
454
      or replace secondary) and a given instance definition (direction
455
      'in')
456
    - run a selected allocator for a given operation (as above) and
457
      return the allocator output (direction 'out')
458

  
459
  """
460
  OP_ID = "OP_TEST_ALLOCATOR"
461
  __slots__ = [
462
    "direction", "mode", "allocator", "name",
463
    "mem_size", "disks", "disk_template",
464
    "os", "tags", "nics", "vcpus",
465
    ]

Also available in: Unified diff