network trunk

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

network subport list

List all subports for a given network trunk

openstack network subport list
    --trunk <trunk>
--trunk <trunk>

List subports belonging to this trunk (name or ID) (required)

network trunk create

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 <parent-port>

Parent port belonging to this trunk (name or ID) (required)

--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.

--description <description>

A description of the trunk.

network trunk delete

Delete a given network trunk

openstack network trunk delete
    <trunk> [<trunk> ...]
<trunk>

Trunk(s) to delete (name or ID)

network trunk list

List all network trunks

openstack network trunk list
    [--long]
--long

List additional fields in output

network trunk set

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)

network trunk show

Show information of a given network trunk

openstack network trunk show
    <trunk>
<trunk>

Trunk to display (name or ID)

network trunk unset

Unset subports from a given network trunk

openstack network trunk unset
    --subport <subport>
    <trunk>
--subport <subport>

Subport to delete (name or ID of the port) (required) (–subport) option can be repeated

<trunk>

Unset subports from this trunk (name or ID)