A network trunk is a container to group logical ports from different networks and provide a single trunked vNIC for servers. It consists of one parent port which is a regular VIF and multiple subports which allow the server to connect to more networks.
Network v2
List all subports for a given network trunk
openstack network subport list
--trunk <trunk>
List subports belonging to this trunk (name or ID) (required)
Create a network trunk for a given project
openstack network trunk create
--parent-port <parent-port>
[--subport <port=,segmentation-type=,segmentation-id=>]
[--enable | --disable]
[--project <project> [--project-domain <project-domain>]]
[--description <description>]
<name>
Parent port belonging to this trunk (name or ID) (required)
Subport to add. Subport is of form ‘port=<name or ID>,segmentation-type=,segmentation-ID=’ (–subport) option can be repeated
Enable trunk (default)
Disable trunk
Owner’s project (name or ID)
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
A description of the trunk.
Delete a given network trunk
openstack network trunk delete
<trunk> [<trunk> ...]
Trunk(s) to delete (name or ID)
List all network trunks
openstack network trunk list
[--long]
List additional fields in output
Set network trunk properties
openstack network trunk set
[--name <name>]
[--description <description>]
[--subport <port=,segmentation-type=,segmentation-id=>]
[--enable | --disable]
<trunk>
Set trunk name
A description of the trunk.
Subport to add. Subport is of form ‘port=<name or ID>,segmentation-type=,segmentation-ID=’ (–subport) option can be repeated
Enable trunk
Disable trunk
Trunk to modify (name or ID)
Show information of a given network trunk
openstack network trunk show
<trunk>
Trunk to display (name or ID)