class documentation
class NodeGroup(TaggableObject):
Config object representing a node group.
Class Method |
|
Custom function for nodegroup. |
Method |
|
Return filled out ndparams for objects.Node |
Method |
|
Fill a given ndparams dict with defaults. |
Method |
|
Custom function for nodegroup. |
Method |
|
Fill defaults for missing configuration values. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | alloc |
Undocumented |
Instance Variable | diskparams |
Undocumented |
Instance Variable | ipolicy |
Undocumented |
Instance Variable | mtime |
Undocumented |
Instance Variable | ndparams |
Undocumented |
Instance Variable | networks |
Undocumented |
Instance Variable | serial |
Undocumented |
Inherited from TaggableObject
:
Class Method |
|
Check if a tag is valid. |
Method |
|
Add a new tag. |
Method |
|
Return the tags list. |
Method |
|
Remove a tag. |
Constant | VALID |
Undocumented |
Instance Variable | tags |
Undocumented |
Inherited from ConfigObject
(via TaggableObject
):
Method | __getattr__ |
Undocumented |
Method | __repr__ |
Implement __repr__ for ConfigObjects. |
Method | __setstate__ |
Undocumented |
Method |
|
Makes a deep copy of the current object and its children. |
Method |
|
Validates the slots. |
Inherited from ValidatedSlots
(via TaggableObject
, ConfigObject
):
Class Method |
|
Compute the list of all declared slots for a class. |
Method | __init__ |
Constructor for BaseOpCode. |
overrides
ganeti.objects.TaggableObject.FromDict
Custom function for nodegroup.
The members slot is initialized to an empty list, upon deserialization.
Return filled out ndparams for objects.Node
Parameters | |
node:objects.Node | A Node object to fill @return a copy of the node's ndparams with defaults filled |
Fill a given ndparams dict with defaults.
Parameters | |
ndparams:dict | the dict to fill |
Returns | |
dict | a copy of the passed in ndparams with missing keys filled from the node group defaults |
overrides
ganeti.objects.TaggableObject.ToDict
Custom function for nodegroup.
This discards the members object, which gets recalculated and is only kept in memory.