Add `trunk_details to ports` resource

Add ``trunk_details`` attribute to ``port`` resource. This attribute
is a dictionary with the trunk ID and a list of subports. Each
element in the subports list is a dictionary with the subport ID,
the segmentation type and segmentation ID.

Related-Bug: #2074187
Change-Id: I2765b308be8af0ff2ee9faaa983f13e42fbe04f9
This commit is contained in:
Rodolfo Alonso Hernandez
2024-10-18 09:01:28 +00:00
parent 0b592bceb9
commit 886fb80fbf
2 changed files with 11 additions and 0 deletions

View File

@@ -76,6 +76,10 @@ class Port(_common.Resource):
#: The UUID of PortGroup this port belongs to. Added in API microversion
#: 1.24.
port_group_id = resource.Body('portgroup_uuid')
#: Read-only. The parent port trunk details dictionary, with the trunk ID
# and the subports information (port ID, segmentation ID and segmentation
# type).
trunk_details = resource.Body('trunk_details', type=dict)
#: Timestamp at which the port was last updated.
updated_at = resource.Body('updated_at')

View File

@@ -0,0 +1,7 @@
---
features:
- |
Add ``trunk_details`` attribute to ``port`` resource. This attribute is
a dictionary with the trunk ID and a list of subports. Each element in the
subports list is a dictionary with the subport ID, the segmentation type
and segmentation ID.