Skip to content

Commit 5534e29

Browse files
author
Cao Xuan Hoang
committed
Fix typo in openstackclient/network/v2
This patch adds the missing "." to some docstring/text. Trivial fix Change-Id: Iffb470dcce7200ddc9e439c465adc652a8322708
1 parent 3c1aae9 commit 5534e29

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

doc/source/command-objects/network.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Create new network
108108
.. option:: --provider-network-type <provider-network-type>
109109
110110
The physical mechanism by which the virtual network is implemented.
111-
The supported options are: flat, geneve, gre, local, vlan, vxlan
111+
The supported options are: flat, geneve, gre, local, vlan, vxlan.
112112
113113
*Network version 2 only*
114114
@@ -238,7 +238,7 @@ Set network properties
238238
.. option:: --provider-network-type <provider-network-type>
239239
240240
The physical mechanism by which the virtual network is implemented.
241-
The supported options are: flat, gre, local, vlan, vxlan
241+
The supported options are: flat, gre, local, vlan, vxlan.
242242
243243
.. option:: --provider-physical-network <provider-physical-network>
244244

doc/source/command-objects/subnet.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Create new subnet
8383
'auto': Gateway address should automatically be chosen from
8484
within the subnet itself, 'none': This subnet will not use
8585
a gateway, e.g.: ``--gateway 192.168.9.1``, ``--gateway auto``,
86-
``--gateway none`` (default is 'auto')
86+
``--gateway none`` (default is 'auto').
8787
8888
.. option:: --host-route destination=<subnet>,gateway=<ip-address>
8989
@@ -158,7 +158,8 @@ List subnets
158158
159159
.. option:: --ip-version {4, 6}
160160
161-
List only subnets of given IP version in output
161+
List only subnets of given IP version in output.
162+
Allowed values for IP version are 4 and 6.
162163
163164
subnet set
164165
----------
@@ -200,7 +201,7 @@ Set subnet properties
200201
Specify a gateway for the subnet. The options are:
201202
<ip-address>: Specific IP address to use as the gateway,
202203
'none': This subnet will not use a gateway,
203-
e.g.: ``--gateway 192.168.9.1``, ``--gateway none``
204+
e.g.: ``--gateway 192.168.9.1``, ``--gateway none``.
204205
205206
.. option:: --host-route destination=<subnet>,gateway=<ip-address>
206207

openstackclient/network/v2/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _add_additional_network_options(parser):
108108
'vlan', 'vxlan'],
109109
help=_("The physical mechanism by which the virtual network "
110110
"is implemented. The supported options are: "
111-
"flat, geneve, gre, local, vlan, vxlan"))
111+
"flat, geneve, gre, local, vlan, vxlan."))
112112
parser.add_argument(
113113
'--provider-physical-network',
114114
metavar='<provider-physical-network>',

openstackclient/network/v2/subnet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def get_parser(self, prog_name):
235235
"'auto': Gateway address should automatically be chosen "
236236
"from within the subnet itself, 'none': This subnet will "
237237
"not use a gateway, e.g.: --gateway 192.168.9.1, "
238-
"--gateway auto, --gateway none (default is 'auto')")
238+
"--gateway auto, --gateway none (default is 'auto').")
239239
)
240240
parser.add_argument(
241241
'--ip-version',
@@ -244,7 +244,7 @@ def get_parser(self, prog_name):
244244
choices=[4, 6],
245245
help=_("IP version (default is 4). Note that when subnet pool is "
246246
"specified, IP version is determined from the subnet pool "
247-
"and this option is ignored")
247+
"and this option is ignored.")
248248
)
249249
parser.add_argument(
250250
'--ipv6-ra-mode',
@@ -334,7 +334,7 @@ def get_parser(self, prog_name):
334334
choices=[4, 6],
335335
metavar='<ip-version>',
336336
dest='ip_version',
337-
help=_("List only subnets of given IP version in output"
337+
help=_("List only subnets of given IP version in output."
338338
"Allowed values for IP version are 4 and 6."),
339339
)
340340
return parser
@@ -395,7 +395,7 @@ def get_parser(self, prog_name):
395395
help=_("Specify a gateway for the subnet. The options are: "
396396
"<ip-address>: Specific IP address to use as the gateway, "
397397
"'none': This subnet will not use a gateway, "
398-
"e.g.: --gateway 192.168.9.1, --gateway none")
398+
"e.g.: --gateway 192.168.9.1, --gateway none.")
399399
)
400400
_get_common_parse_arguments(parser)
401401
return parser

0 commit comments

Comments
 (0)