class documentation

Config object representing an instance.

Class Method FromDict Custom function for instances.
Method FindDisk Find a disk given having a specified index.
Method ToDict Instance-specific conversion to standard python types.
Method UpgradeConfig Fill defaults for missing configuration values.
Class Variable __slots__ Undocumented
Instance Variable admin_state_source Undocumented
Instance Variable disks Undocumented
Instance Variable disks_active Undocumented
Instance Variable osparams Undocumented
Instance Variable osparams_private Undocumented

Inherited from TaggableObject:

Class Method ValidateTag Check if a tag is valid.
Method AddTag Add a new tag.
Method GetTags Return the tags list.
Method RemoveTag Remove a tag.
Constant VALID_TAG_RE Undocumented
Instance Variable tags Undocumented

Inherited from ConfigObject (via TaggableObject):

Method __getattr__ Undocumented
Method __repr__ Implement __repr__ for ConfigObjects.
Method __setstate__ Undocumented
Method Copy Makes a deep copy of the current object and its children.
Method Validate Validates the slots.

Inherited from ValidatedSlots (via TaggableObject, ConfigObject):

Class Method GetAllSlots Compute the list of all declared slots for a class.
Method __init__ Constructor for BaseOpCode.
@classmethod
def FromDict(cls, val):

Custom function for instances.

def FindDisk(self, idx):

Find a disk given having a specified index.

This is just a wrapper that does validation of the index.

Parameters
idx:intthe disk index
Returns
stringthe corresponding disk's uuid
Raises
errors.OpPrereqErrorwhen the given index is not valid
def ToDict(self, _with_private=False):

Instance-specific conversion to standard python types.

This replaces the children lists of objects with lists of standard python types.

def UpgradeConfig(self):

Fill defaults for missing configuration values.

__slots__ =
admin_state_source =

Undocumented

disks: list =

Undocumented

disks_active =

Undocumented

osparams: dict =

Undocumented

osparams_private =

Undocumented