Richard Theis 4f23a77de0 Add network segment create, delete and set support
Add network segment create, delete and set in support of routed
networks. This patch set includes documentation, unit tests and
functional tests for the following new commands:
  - "os network segment create"
  - "os network segment delete"
  - "os network segment set"
This patch set also includes support for the name and description
properties.

These new commands are currently marked as beta commands.

Change-Id: I86bc223c4adc5b5fe1b1ee5c9253e43ba52fb5ed
Depends-On: Ib194125162057fccb4e951587c2fa4ec2e2f098c
Partially-Implements: blueprint routed-networks
2016-09-09 15:19:55 -05:00

3.5 KiB

network segment

A network segment is an isolated Layer 2 segment within a network. A network may contain multiple network segments. Depending on the network configuration, Layer 2 connectivity between network segments within a network may not be guaranteed.

Network v2

network segment create

Create new network segment

Caution

This is a beta command and subject to change. Use global option --os-beta-command to enable this command.

network segment create

os network segment create
    [--description <description>]
    [--physical-network <physical-network>]
    [--segment <segment>]
    --network <network>
    --network-type <network-type>
    <name>

--description <description>

Network segment description

--physical-network <physical-network>

Physical network name of this network segment

--segment <segment>

Segment identifier for this network segment which is based on the network type, VLAN ID for vlan network type and tunnel ID for geneve, gre and vxlan network types

--network <network>

Network this network segment belongs to (name or ID)

--network-type <network-type>

Network type of this network segment (flat, geneve, gre, local, vlan or vxlan)

New network segment name

network segment delete

Delete network segment(s)

Caution

This is a beta command and subject to change. Use global option --os-beta-command to enable this command.

network segment delete

os network segment delete
    <network-segment> [<network-segment> ...]




Network segment(s) to delete (name or ID)

network segment list

List network segments

Caution

This is a beta command and subject to change. Use global option --os-beta-command to enable this command.

network segment list

os network segment list
    [--long]
    [--network <network>]

--long

List additional fields in output

--network <network>

List network segments that belong to this network (name or ID)

network segment set

Set network segment properties

Caution

This is a beta command and subject to change. Use global option --os-beta-command to enable this command.

network segment set

os network segment set
    [--description <description>]
    [--name <name>]
    <network-segment>

--description <description>

Set network segment description

--name <name>

Set network segment name

Network segment to modify (name or ID)

network segment show

Display network segment details

Caution

This is a beta command and subject to change. Use global option --os-beta-command to enable this command.

network segment show

os network segment show
    <network-segment>




Network segment to display (name or ID)