Package ganeti :: Module objects :: Class OS
[hide private]
[frames] | no frames]

Class OS

source code


Config object representing an operating system.

Instance Methods [hide private]

Inherited from ConfigObject: Copy, ToDict, UpgradeConfig, Validate, __eq__, __getattr__, __getstate__, __repr__, __setstate__

Inherited from outils.ValidatedSlots: __init__

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

Class Methods [hide private]
list
SplitNameVariant(cls, name)
Splits the name into the proper name and variant.
source code
 
GetName(cls, name)
Returns the proper name of the os (without the variant).
source code
 
GetVariant(cls, name)
Returns the variant the os (without the base name).
source code

Inherited from ConfigObject: FromDict

Inherited from outils.ValidatedSlots: GetAllSlots

Class Variables [hide private]
string VARIANT_DELIM = "+"
the variant delimiter
Instance Variables [hide private]
list supported_parameters
a list of tuples, name and description, containing the supported parameters by this OS
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

SplitNameVariant(cls, name)
Class Method

source code 

Splits the name into the proper name and variant.

Parameters:
  • name - the OS (unprocessed) name
Returns: list
a list of two elements; if the original name didn't contain a variant, it's returned as an empty string

GetName(cls, name)
Class Method

source code 

Returns the proper name of the os (without the variant).

Parameters:
  • name - the OS (unprocessed) name

GetVariant(cls, name)
Class Method

source code 

Returns the variant the os (without the base name).

Parameters:
  • name - the OS (unprocessed) name