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
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
--trunk <trunk>
Config file for the dict-to-csv formatter
specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
sort the column(s) in ascending order
sort the column(s) in descending order
List subports belonging to this trunk (name or ID)
Create a network trunk for a given project
openstack network trunk create
[--description <description>]
--parent-port <parent-port>
[--subport <port=,segmentation-type=,segmentation-id=>]
[--enable | --disable]
[--project <project>]
[--project-domain <project-domain>]
<name>
A description of the trunk
Parent port belonging to this trunk (name or ID)
Subport to add. Subport is of form ‘port=<name or ID>,segmentation-type=<segmentation-type>,segmentation-id=<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.
Name of the trunk to create
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
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--long]
Config file for the dict-to-csv formatter
specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
sort the column(s) in ascending order
sort the column(s) in descending order
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-type>,segmentation-id=<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)
Unset subports from a given network trunk
openstack network trunk unset --subport <subport> <trunk>
Subport to delete (name or ID of the port) (–subport) option can be repeated
Unset subports from this trunk (name or ID)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.