docs/doc/source/datanet/adding-segmentation-ranges-using-the-cli.rst
Ron Stone 11ded0cf7e Data Networks guide
Applied M. Camp's comments on patchset 4.
Also, some additional formatting changes such as tidying line ends <= 79
characters, reformatting very wide ascii table as list table to control
line widths, etc.

Resolved conflict in _includes/data-networks-overview.rest

Change-Id: I8a2a80f21d3630849900e85dc2495da1668648af
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Signed-off-by: Stone <ronald.stone@windriver.com>
2020-11-23 09:17:34 -05:00

2.3 KiB

Add Segmentation Ranges Using the CLI

You can use the CLI to add segmentation ranges to data networks.

  1. Use the openstack network segment range command to create VLAN/VXLAN segmentation ranges.

    This example creates segmentation ranges on data network data-net-a.

    ~(keystone_admin)]$ openstack network segment range create segment-a-common \
        --description "Shared segmentation range"
        --physical-network data-net-a \
        --network-type vlan \
        --minimum 10 \
        --maximum 10 \
    
    ~(keystone_admin)]$ openstack network segment range create segment-a-project1 \
        --private \
        --project ${project1_UUID} \
        --physical-network data-net-a \
        --network-type vlan \
        --minimum 623
    
    ~(keystone_admin)]$ openstack network segment range create segment-a-project2 \
        --private \
        --project ${project2_UUID} \
        --physical-network data-net-b \
        --network-type vlan \
        --minimum 664 \
        --maximum 680

    where

    <name>

    name of the segment is a positional argument and can be supplied at the beginning or the end of the openstack network segment range create command.

    This is not a named option.

    description

    is a description of the segmentation range.

    private

    is an flag to denote this is a segmentation range for a single project.

    project

    is the name or UUID of the project associated with the range.

    physical-network

    is the data network associated with the range.

    network type

    is the network type (VLAN/VXLAN) of the range.

    minimum

    is the minimum value of the segmentation range.

    maximum

    is the maximum value of the segmentation range.

You can also obtain information about segmentation ranges using the following command:

~(keystone_admin)]$ openstack network segment range show <range_name_or_uuid>