Bases: ironic.objects.base.IronicObject, oslo_versionedobjects.base.VersionedObjectDictCompat
Create a Portgroup record in the DB.
Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Portgroup(context) |
---|---|
Raises: | DuplicateName, MACAlreadyExists, PortgroupAlreadyExists |
Delete the Portgroup from the DB.
Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Portgroup(context) |
---|---|
Raises: | PortgroupNotEmpty, PortgroupNotFound |
Find a portgroup based on its id, uuid, name or address.
Parameters: |
|
---|---|
Returns: | A Portgroup object. |
Raises: | InvalidIdentity |
Find a portgroup based on address and return a Portgroup object.
Parameters: |
|
---|---|
Returns: | A Portgroup object. |
Raises: | PortgroupNotFound |
Find a portgroup based on its integer id and return a Portgroup object.
Parameters: |
|
---|---|
Returns: | A Portgroup object. |
Raises: | PortgroupNotFound |
Find a portgroup based on name and return a Portgroup object.
Parameters: |
|
---|---|
Returns: | A Portgroup object. |
Raises: | PortgroupNotFound |
Find a portgroup based on uuid and return a Portgroup object.
Parameters: |
|
---|---|
Returns: | A Portgroup object. |
Raises: | PortgroupNotFound |
Return a list of Portgroup objects.
Parameters: |
|
---|---|
Returns: | A list of Portgroup object. |
Raises: | InvalidParameterValue |
Return a list of Portgroup objects associated with a given node ID.
Parameters: |
|
---|---|
Returns: | A list of Portgroup object. |
Raises: | InvalidParameterValue |
Loads updates for this Portgroup.
Loads a portgroup with the same uuid from the database and checks for updated attributes. Updates are applied from the loaded portgroup column by column, if there are any updates.
Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Portgroup(context) |
---|---|
Raises: | PortgroupNotFound |
Save updates to this Portgroup.
Updates will be made column by column based on the result of self.what_changed().
Parameters: | context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Portgroup(context) |
---|---|
Raises: | PortgroupNotFound, DuplicateName, MACAlreadyExists |