diff --git a/openstack/baremetal/v1/port.py b/openstack/baremetal/v1/port.py index 2105508e6..9db9fc12e 100644 --- a/openstack/baremetal/v1/port.py +++ b/openstack/baremetal/v1/port.py @@ -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') diff --git a/releasenotes/notes/add-port-trunk-details-ed2d98a36ce70c0f.yaml b/releasenotes/notes/add-port-trunk-details-ed2d98a36ce70c0f.yaml new file mode 100644 index 000000000..ccfbffc75 --- /dev/null +++ b/releasenotes/notes/add-port-trunk-details-ed2d98a36ce70c0f.yaml @@ -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.