Revision 76aef8fc lib/opcodes.py

b/lib/opcodes.py
381 381
    ]
382 382

  
383 383

  
384
class OpRepairNodeStorage(OpCode):
385
  """Repairs the volume group on a node."""
386
  OP_ID = "OP_REPAIR_NODE_STORAGE"
387
  OP_DSC_FIELD = "node_name"
388
  __slots__ = OpCode.__slots__ + [
389
    "node_name",
390
    "storage_type",
391
    "name",
392
    ]
393

  
394

  
384 395
class OpSetNodeParams(OpCode):
385 396
  """Change the parameters of a node."""
386 397
  OP_ID = "OP_NODE_SET_PARAMS"
......
680 691
    "os", "tags", "nics", "vcpus", "hypervisor",
681 692
    ]
682 693

  
694

  
683 695
OP_MAPPING = dict([(v.OP_ID, v) for v in globals().values()
684 696
                   if (isinstance(v, type) and issubclass(v, OpCode) and
685 697
                       hasattr(v, "OP_ID"))])

Also available in: Unified diff