Package ganeti :: Module opcodes :: Class OpInstanceMultiAllocBase
[hide private]
[frames] | no frames]

Class OpInstanceMultiAllocBase

source code


Allocates multiple instances.

Nested Classes [hide private]

Inherited from opcodes_base.BaseOpCode: __metaclass__

Instance Methods [hide private]
dict
__getstate__(self)
Generic serializer.
source code
 
__setstate__(self, state)
Generic unserializer.
source code
NoneType
Validate(self, set_defaults)
Validates this opcode.
source code

Inherited from OpCode: Summary, TinySummary

Inherited from opcodes_base.BaseOpCode: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from OpCode: LoadOpCode

Inherited from opcodes_base.BaseOpCode: GetAllParams

Inherited from outils.ValidatedSlots: GetAllSlots

Class Variables [hide private]

Inherited from OpCode: OP_DSC_FIELD, OP_DSC_FORMATTER, OP_ID, OP_PARAMS, OP_RESULT, WITH_LU

Instance Variables [hide private]

Inherited from OpCode: dry_run, priority

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__getstate__(self)

source code 

Generic serializer.

Returns: dict
the state as a dictionary
Overrides: opcodes_base.BaseOpCode.__getstate__

__setstate__(self, state)

source code 

Generic unserializer.

This method just restores from the serialized state the attributes of the current instance.

Parameters:
  • state (dict) - the serialized opcode data
Overrides: opcodes_base.BaseOpCode.__setstate__

Validate(self, set_defaults)

source code 

Validates this opcode.

We do this recursively.

Parameters:
  • set_defaults (bool) - whether to set default values
Returns: NoneType
None, if the validation succeeds
Raises:
Overrides: outils.ValidatedSlots.Validate