Add "hardware_offload_type" attribute to "port"
Depends-On: https://review.opendev.org/c/openstack/python-openstackclient/+/894510 Related-Bug: #2013228 Change-Id: I48f09efe3e47b1d20c3756ef4159ba908adde38b
This commit is contained in:
parent
a4a46ebc59
commit
cc1a6c3e20
@ -112,6 +112,9 @@ class Port(_base.NetworkResource, tag.TagMixin):
|
|||||||
extra_dhcp_opts = resource.Body('extra_dhcp_opts', type=list)
|
extra_dhcp_opts = resource.Body('extra_dhcp_opts', type=list)
|
||||||
#: IP addresses for the port. Includes the IP address and subnet ID.
|
#: IP addresses for the port. Includes the IP address and subnet ID.
|
||||||
fixed_ips = resource.Body('fixed_ips', type=list)
|
fixed_ips = resource.Body('fixed_ips', type=list)
|
||||||
|
#: The type of hardware offload this port will request when attached to the
|
||||||
|
# network backend.
|
||||||
|
hardware_offload_type = resource.Body('hardware_offload_type')
|
||||||
#: Read-only. The ip_allocation indicates when ports use deferred,
|
#: Read-only. The ip_allocation indicates when ports use deferred,
|
||||||
# immediate or no IP allocation.
|
# immediate or no IP allocation.
|
||||||
ip_allocation = resource.Body('ip_allocation')
|
ip_allocation = resource.Body('ip_allocation')
|
||||||
|
@ -34,6 +34,7 @@ EXAMPLE = {
|
|||||||
'dns_name': '12',
|
'dns_name': '12',
|
||||||
'extra_dhcp_opts': [{'13': 13}],
|
'extra_dhcp_opts': [{'13': 13}],
|
||||||
'fixed_ips': [{'14': '14'}],
|
'fixed_ips': [{'14': '14'}],
|
||||||
|
'hardware_offload_type': None,
|
||||||
'id': IDENTIFIER,
|
'id': IDENTIFIER,
|
||||||
'ip_allocation': 'immediate',
|
'ip_allocation': 'immediate',
|
||||||
'mac_address': '16',
|
'mac_address': '16',
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add ``hardware_offload_type`` attribute to ``port`` resource. Users
|
||||||
|
can set this attribute to a valid value defined in
|
||||||
|
``neutron_lib.constants.VALID_HWOL_TYPES``, set "None" or leave it
|
||||||
|
undefined.
|
Loading…
x
Reference in New Issue
Block a user