Skip to content

Commit a8c085f

Browse files
author
reedip
committed
TrivialFix: Rename provider segment option
As per [1], provider-segmentation-id is changed to provider-segment as segments may soon have a "name" support as well. [1]: https://review.openstack.org/#/c/294422/12/doc/source/command-objects/network.rst Change-Id: I74d4366301b41fa181faccbc12cff9530df60353
1 parent 1b351e1 commit a8c085f

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

doc/source/command-objects/network.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Create new network
2020
[--external [--default | --no-default] | --internal]
2121
[--provider-network-type <provider-network-type>]
2222
[--provider-physical-network <provider-physical-network>]
23-
[--provider-segmentation-id <provider-segmentation-id>]
23+
[--provider-segment <provider-segment>]
2424
<name>
2525
2626
.. option:: --project <project>
@@ -97,9 +97,9 @@ Create new network
9797
Name of the physical network over which the virtual network is implemented
9898
(Network v2 only)
9999
100-
.. option:: --provider-segmentation-id <provider-segmentation-id>
100+
.. option:: --provider-segment <provider-segment>
101101
102-
VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN networks
102+
VLAN ID for VLAN networks or Tunnel ID for GRE/VXLAN networks
103103
(Network v2 only)
104104
105105
.. _network_create-name:

openstackclient/network/v2/network.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ def update_parser_network(self, parser):
180180
help='Name of the physical network over which the virtual '
181181
'network is implemented')
182182
parser.add_argument(
183-
'--provider-segmentation-id',
184-
metavar='<provider-segmentation-id>',
183+
'--provider-segment',
184+
metavar='<provider-segment>',
185185
dest='segmentation_id',
186-
help='VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN '
186+
help='VLAN ID for VLAN networks or Tunnel ID for GRE/VXLAN '
187187
'networks')
188188
return parser
189189

openstackclient/tests/network/v2/test_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_create_all_options(self):
144144
"--external", "--default",
145145
"--provider-network-type", "vlan",
146146
"--provider-physical-network", "physnet1",
147-
"--provider-segmentation-id", "400",
147+
"--provider-segment", "400",
148148
self._network.name,
149149
]
150150
verifylist = [

0 commit comments

Comments
 (0)