The Port
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow
Resource objects to be used without an active Connection, such as
in unit tests. Use of self._connection
in Resource code should
protect itself with a check for None.
Allowed address pairs.
The ID of the host where the port is allocated. In some cases, different implementations can run on different hosts.
A dictionary the enables the application running on the specified host to pass and receive vif port-specific information to the plug-in. Type: dict
Read-only. A dictionary that enables the application to pass
information about functions that the Networking API provides.
To enable or disable port filtering features such as security group
and anti-MAC/IP spoofing, specify port_filter: True
or
port_filter: False
. Type: dict
Read-only. The vif type for the specified port.
The vnic type that is bound to the neutron port.
In POST and PUT operations, specify a value of normal
(virtual nic),
direct
(pci passthrough), or macvtap
(virtual interface with a tap-like software interface).
These values support SR-IOV PCI passthrough networking.
The ML2 plug-in supports the vnic_type.
In GET operations, the binding:vnic_type extended attribute is visible to only port owners and administrative users.
Timestamp when the port was created.
Underlying data plane status of this port.
The port description.
Device ID of this port.
Device owner of this port (e.g. network:dhcp
).
DNS assignment for the port.
DNS domain assigned to the port.
DNS name for the port.
Extra DHCP options.
IP addresses for the port. Includes the IP address and subnet ID.
The administrative state of the port, which is up True
or
down False
. Type: bool
The port security status, which is enabled True
or disabled
False
. Type: bool Default: False
The MAC address of an allowed address pair.
The port name.
The ID of the attached network.
The NUMA affinity policy defined for this port.
The ID of the project who owns the network. Only administrative users can specify a project ID other than their own.
Tenant_id (deprecated attribute).
Whether to propagate uplink status of the port. Type: bool
The ID of the QoS policy attached to the port.
The IDs of any attached security groups. Type: list of strs of the security group IDs
The port status. Value is ACTIVE
or DOWN
.
Read-only. The trunk referring to this parent port and its subports.
Present for trunk parent ports if trunk-details
extension is loaded.
Type: dict with keys: trunk_id, sub_ports.
sub_ports is a list of dicts with keys:
port_id, segmentation_type, segmentation_id, mac_address
Timestamp when the port was last updated.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.