diff --git a/doc/source/command-objects/network.rst b/doc/source/command-objects/network.rst index 9fbc02164c..3d01f25330 100644 --- a/doc/source/command-objects/network.rst +++ b/doc/source/command-objects/network.rst @@ -20,7 +20,7 @@ Create new network [--external [--default | --no-default] | --internal] [--provider-network-type ] [--provider-physical-network ] - [--provider-segmentation-id ] + [--provider-segment ] .. option:: --project @@ -97,9 +97,9 @@ Create new network Name of the physical network over which the virtual network is implemented (Network v2 only) -.. option:: --provider-segmentation-id +.. option:: --provider-segment - VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN networks + VLAN ID for VLAN networks or Tunnel ID for GRE/VXLAN networks (Network v2 only) .. _network_create-name: diff --git a/openstackclient/network/v2/network.py b/openstackclient/network/v2/network.py index d3b20c0f3e..ebd5cb63de 100644 --- a/openstackclient/network/v2/network.py +++ b/openstackclient/network/v2/network.py @@ -180,10 +180,10 @@ class CreateNetwork(common.NetworkAndComputeShowOne): help='Name of the physical network over which the virtual ' 'network is implemented') parser.add_argument( - '--provider-segmentation-id', - metavar='', + '--provider-segment', + metavar='', dest='segmentation_id', - help='VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN ' + help='VLAN ID for VLAN networks or Tunnel ID for GRE/VXLAN ' 'networks') return parser diff --git a/openstackclient/tests/network/v2/test_network.py b/openstackclient/tests/network/v2/test_network.py index 2493362e29..0dec0e2ff8 100644 --- a/openstackclient/tests/network/v2/test_network.py +++ b/openstackclient/tests/network/v2/test_network.py @@ -144,7 +144,7 @@ class TestCreateNetworkIdentityV3(TestNetwork): "--external", "--default", "--provider-network-type", "vlan", "--provider-physical-network", "physnet1", - "--provider-segmentation-id", "400", + "--provider-segment", "400", self._network.name, ] verifylist = [