Merge "Add "hardware_offload_type" attribute to "port""

This commit is contained in:
Zuul 2023-09-28 13:22:28 +00:00 committed by Gerrit Code Review
commit 8b92fed92a
3 changed files with 11 additions and 0 deletions

View File

@ -112,6 +112,9 @@ class Port(_base.NetworkResource, tag.TagMixin):
extra_dhcp_opts = resource.Body('extra_dhcp_opts', type=list)
#: IP addresses for the port. Includes the IP address and subnet ID.
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,
# immediate or no IP allocation.
ip_allocation = resource.Body('ip_allocation')

View File

@ -34,6 +34,7 @@ EXAMPLE = {
'dns_name': '12',
'extra_dhcp_opts': [{'13': 13}],
'fixed_ips': [{'14': '14'}],
'hardware_offload_type': None,
'id': IDENTIFIER,
'ip_allocation': 'immediate',
'mac_address': '16',

View File

@ -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.