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
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
--trunk <trunk>
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--quote <QUOTE_MODE>¶when to include quotes, defaults to nonnumeric
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--trunk <trunk>¶List subports belonging to this trunk (name or ID)
Create a network trunk for a given project
openstack network trunk create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
[--prefix PREFIX]
[--description <description>]
--parent
-p
ort
<parent-port>
[--subport <port=,segmentation-type=,segmentation-id=>]
[--enable | --disable]
[--project <project>]
[--project-domain <project-domain>]
<name>
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--prefix <PREFIX>¶add a prefix to all variable names
--description <description>¶A description of the trunk
--parent-port <parent-port>¶Parent port belonging to this trunk (name or ID)
--subport <port=,segmentation-type=,segmentation-id=>¶Subport to add. Subport is of form ‘port=<name or ID>,segmentation-type=,segmentation-ID=’ (–subport) option can be repeated
--enable¶Enable trunk (default)
--disable¶Disable trunk
--project <project>¶Owner’s project (name or ID)
--project-domain <project-domain>¶Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
name¶Name of the trunk to create
Delete a given network trunk
openstack network trunk delete <trunk> [<trunk> ...]
trunk¶Trunk(s) to delete (name or ID)
List all network trunks
openstack network trunk list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
[--long]
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--quote <QUOTE_MODE>¶when to include quotes, defaults to nonnumeric
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--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>
--name <name>¶Set trunk name
--description <description>¶A description of the trunk
--subport <port=,segmentation-type=,segmentation-id=>¶Subport to add. Subport is of form ‘port=<name or ID>,segmentation-type=,segmentation-ID=’(–subport) option can be repeated
--enable¶Enable trunk
--disable¶Disable trunk
trunk¶Trunk to modify (name or ID)
Show information of a given network trunk
openstack network trunk show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
[--prefix PREFIX]
<trunk>
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--prefix <PREFIX>¶add a prefix to all variable names
trunk¶Trunk to display (name or ID)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.