File: trunk-details.inc

package info (click to toggle)
python-neutron-lib 3.18.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,652 kB
  • sloc: python: 22,800; sh: 145; makefile: 24
file content (45 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.. -*- rst -*-

=========================================
Trunk details extended attributes (ports)
=========================================

The trunk_details extension attribute is available when showing a
port resource that participates in a trunk as parent. The extension
is useful for REST clients that may want to access trunk details
when getting the parent port, and it allows them to avoid extra
lookups.

Show trunk details
==================

.. rest_method::  GET /v2.0/ports/{port_id}

Shows details for a port. The details available in the `trunk_details`
attribute contain the trunk ID and the array showing information
about the subports that belong to the trunk: the port UUID, the
segmentation type, the segmentation ID, and the MAC address.

.. include:: filtering-show.inc

Normal response codes: 200

Request
-------

.. rest_parameters:: parameters.yaml

   - port_id: port_id-path

Response Parameters
-------------------

.. rest_parameters:: parameters.yaml

   - trunk_details: trunk_details

Response Example
----------------

.. literalinclude:: ../v2/samples/trunks/trunk-details-show-response.json
   :language: javascript