ironic.api.controllers.v1.port.Port(**kwargs)[source]¶Bases: ironic.api.controllers.base.APIBase
API representation of a port.
This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a port.
address¶MAC Address for this port
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 port’s meta data
internal_info¶This port’s internal information maintained by ironic
links¶A list containing a self link and associated port links
local_link_connection¶The port binding profile for the port
node_uuid¶The UUID of the node this port belongs to
physical_network¶The name of the physical network to which this port is connected.
portgroup_uuid¶The UUID of the portgroup this port belongs to
pxe_enabled¶Indicates whether pxe is enabled or disabled on the node.
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 |
|---|
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 port
ironic.api.controllers.v1.port.PortCollection(**kwargs)[source]¶Bases: ironic.api.controllers.v1.collection.Collection
API representation of a collection of ports.
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)
ports¶A list containing ports 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.port.PortPatchType(**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.port.PortsController(node_ident=None, portgroup_ident=None)[source]¶Bases: pecan.rest.RestController
REST controller for Ports.
advanced_net_fields = ['pxe_enabled', 'local_link_connection']¶delete(**kwargs)[source]¶Delete a port.
| Parameters: | port_uuid – UUID of a port. |
|---|---|
| Raises: | OperationNotPermitted, HTTPNotFound |
detail(**kwargs)[source]¶Retrieve a list of ports with detail.
Note that the ‘node_uuid’ interface is deprecated in favour of the ‘node’ interface
| Parameters: |
|
|---|---|
| Raises: | NotAcceptable, HTTPNotFound |
get_all(**kwargs)[source]¶Retrieve a list of ports.
Note that the ‘node_uuid’ interface is deprecated in favour of the ‘node’ interface
| Parameters: |
|
|---|---|
| Raises: | NotAcceptable, HTTPNotFound |
get_one(**kwargs)[source]¶Retrieve information about the given port.
| Parameters: |
|
|---|---|
| Raises: | NotAcceptable, HTTPNotFound |
invalid_sort_key_list = ['extra', 'internal_info', 'local_link_connection']¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.