Bases: IronicObject
Create a Trait record in the DB.
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.: Trait(context).
InvalidParameterValue if adding the trait would exceed the per-node traits limit.
NodeNotFound if the node no longer appears in the database.
Delete the Trait from the DB.
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.: Trait(context).
node_id – The id of a node.
trait – A trait string.
NodeNotFound if the node no longer appears in the database.
NodeTraitNotFound if the trait is not found.
Check whether a Trait exists in the DB.
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.: Trait(context).
node_id – The id of a node.
trait – A trait string.
True if the trait exists otherwise False.
NodeNotFound if the node no longer appears in the database.
Bases: IronicObjectListBase
, IronicObject
Replace all existing traits with the specified list.
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.: Trait(context).
node_id – The id of a node.
traits – List of Strings; traits to set.
InvalidParameterValue if adding the trait would exceed the per-node traits limit.
NodeNotFound if the node no longer appears in the database.
Delete all traits for the specified node.
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.: Trait(context).
node_id – The id of a node.
NodeNotFound if the node no longer appears in the database.
Return all traits for the specified node.
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.: Trait(context).
node_id – The id of a node.
NodeNotFound if the node no longer appears in the database.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.