Skip to content

Commit 01c3548

Browse files
author
Wenran Xiao
committed
Fix help message for subnetpool default-quota value
Default pre-project quota is the number of IP addresses that can be allocated from the subnet pool. For example, with a quota of 128, I might get a 64 addresses subnet1, and 16 addresses subnet2, and still have room to allocate 48 more addresses in the future. Change-Id: Ia0ba827790b190647aed990e47347560fc9e9f0c
1 parent 1b66ad9 commit 01c3548

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

doc/source/cli/command-objects/subnet-pool.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ Create subnet pool
7777
7878
.. option:: --default-quota <num-ip-addresses>
7979
80-
Set default quota for subnet pool as the number of
81-
IP addresses allowed in a subnet
80+
Set default per-project quota for this subnet pool as the number of
81+
IP addresses that can be allocated from the subnet pool
8282
8383
.. option:: --tag <tag>
8484
@@ -250,8 +250,8 @@ Set subnet pool properties
250250
251251
.. option:: --default-quota <num-ip-addresses>
252252
253-
Set default quota for subnet pool as the number of
254-
IP addresses allowed in a subnet
253+
Set default per-project quota for this subnet pool as the number of
254+
IP addresses that can be allocated from the subnet pool
255255
256256
.. option:: --tag <tag>
257257

openstackclient/network/v2/subnet_pool.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,9 @@ def get_parser(self, prog_name):
191191
'--default-quota',
192192
type=int,
193193
metavar='<num-ip-addresses>',
194-
help=_("Set default quota for subnet pool as the number of"
195-
"IP addresses allowed in a subnet")),
194+
help=_("Set default per-project quota for this subnet pool "
195+
"as the number of IP addresses that can be allocated "
196+
"from the subnet pool")),
196197
_tag.add_tag_option_to_parser_for_create(parser, _('subnet pool'))
197198
return parser
198199

@@ -389,8 +390,9 @@ def get_parser(self, prog_name):
389390
'--default-quota',
390391
type=int,
391392
metavar='<num-ip-addresses>',
392-
help=_("Set default quota for subnet pool as the number of"
393-
"IP addresses allowed in a subnet")),
393+
help=_("Set default per-project quota for this subnet pool "
394+
"as the number of IP addresses that can be allocated "
395+
"from the subnet pool")),
394396
_tag.add_tag_option_to_parser_for_set(parser, _('subnet pool'))
395397

396398
return parser

0 commit comments

Comments
 (0)