class documentation

class OpInstanceCreate(OpCode):

View In Hierarchy

Create an instance.

Constant OP_DSC_FIELD Undocumented
Constant OP_PARAMS Undocumented
Constant OP_RESULT Undocumented
Instance Variable instance_name Instance name
Instance Variable mode Instance creation mode (one of constants.INSTANCE_CREATE_MODES)
Instance Variable source_handshake Signed handshake from source (remote import only)
Instance Variable source_instance_name Previous name of instance (remote import only)
Instance Variable source_shutdown_timeout Shutdown timeout used for source instance (remote import only)
Instance Variable source_x509_ca Source X509 CA in PEM format (remote import only)

Inherited from OpCode:

Class Method LoadOpCode Generic load opcode method.
Method __getstate__ Specialized getstate for opcodes.
Method Summary Generates a summary description of this opcode.
Method TinySummary Generates a compact summary description of the opcode.
Constant WITH_LU Boolean that specifies whether this should be included in mcpu's dispatch table
Class Variable OP_DSC_FORMATTER A callable that should format the OP_DSC_FIELD; if not present, then the field will be simply converted to string
Class Variable OP_ID The ID of this opcode. This should be unique amongst all children of this class.
Instance Variable dry_run Whether the LU should be run in dry-run mode, i.e. just the check steps
Instance Variable priority Opcode priority for queue

Inherited from BaseOpCode (via OpCode):

Class Method GetAllParams Compute list of all parameters for an opcode.
Method __init__ Constructor for BaseOpCode.
Method __setstate__ Generic unserializer.
Method Validate Validate opcode parameters, optionally setting default values.

Inherited from ValidatedSlots (via OpCode, BaseOpCode):

Class Method GetAllSlots Compute the list of all declared slots for a class.
Class Variable __slots__ Undocumented
OP_DSC_FIELD: str =

Undocumented

Value
'instance_name'
OP_PARAMS =

Undocumented

Value
[('instance_name',
  None,
  ht.TString,
  'A required instance name (for single-instance LUs)'),
 ('force_variant', False, ht.TBool, 'Whether to force an unknown OS variant'),
 ('wait_for_sync',
  True,
...
instance_name =

Instance name

mode =

Instance creation mode (one of constants.INSTANCE_CREATE_MODES)

source_handshake =

Signed handshake from source (remote import only)

source_instance_name =

Previous name of instance (remote import only)

source_shutdown_timeout =

Shutdown timeout used for source instance (remote import only)

source_x509_ca =

Source X509 CA in PEM format (remote import only)