ironic.api.controllers.v1.portgroup.Portgroup(**kwargs)[source]¶Bases: ironic.api.controllers.base.APIBase
API representation of a portgroup.
This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a portgroup.
address¶MAC Address for this portgroup
convert_with_links(rpc_portgroup, fields=None, sanitize=True)[source]¶Add links to the portgroup.
created_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
extra¶This portgroup’s meta data
internal_info¶This portgroup’s internal info
links¶A list containing a self link and associated portgroup links
mode¶The mode for this portgroup. See linux bonding documentation for details: https://www.kernel.org/doc/Documentation/networking/bonding.txt
name¶The logical name for this portgroup
node_uuid¶The UUID of the node this portgroup belongs to
ports¶Links to the collection of ports of this portgroup
properties¶This portgroup’s properties
sanitize(fields=None)[source]¶Removes sensitive and unrequested data.
Will only keep the fields specified in the fields parameter.
| Parameters: | fields (list of str) – list of fields to preserve, or None to preserve them all |
|---|
standalone_ports_supported¶Indicates whether ports of this portgroup may be used as single NIC ports
updated_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
uuid¶Unique UUID for this portgroup
ironic.api.controllers.v1.portgroup.PortgroupCollection(**kwargs)[source]¶Bases: ironic.api.controllers.v1.collection.Collection
API representation of a collection of portgroups.
created_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
next¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
portgroups¶A list containing portgroup objects
updated_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
ironic.api.controllers.v1.portgroup.PortgroupPatchType(**kw)[source]¶Bases: ironic.api.controllers.v1.types.JsonPatchType
op¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
path¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
value¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
ironic.api.controllers.v1.portgroup.PortgroupsController(node_ident=None)[source]¶Bases: pecan.rest.RestController
REST controller for portgroups.
delete(**kwargs)[source]¶Delete a portgroup.
| Parameters: | portgroup_ident – UUID or logical name of a portgroup. |
|---|
detail(**kwargs)[source]¶Retrieve a list of portgroups with detail.
| Parameters: |
|
|---|
get_all(**kwargs)[source]¶Retrieve a list of portgroups.
| Parameters: |
|
|---|
get_one(**kwargs)[source]¶Retrieve information about the given portgroup.
| Parameters: |
|
|---|
invalid_sort_key_list = ['extra', 'internal_info', 'properties']¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.