From 01c3548dc8c35da198453af4e20331b5aa15f436 Mon Sep 17 00:00:00 2001 From: Wenran Xiao Date: Tue, 18 Sep 2018 11:32:03 +0800 Subject: [PATCH] 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 --- doc/source/cli/command-objects/subnet-pool.rst | 8 ++++---- openstackclient/network/v2/subnet_pool.py | 10 ++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/doc/source/cli/command-objects/subnet-pool.rst b/doc/source/cli/command-objects/subnet-pool.rst index 0cff4d7f56..c6fda03caa 100644 --- a/doc/source/cli/command-objects/subnet-pool.rst +++ b/doc/source/cli/command-objects/subnet-pool.rst @@ -77,8 +77,8 @@ Create subnet pool .. option:: --default-quota - Set default quota for subnet pool as the number of - IP addresses allowed in a subnet + Set default per-project quota for this subnet pool as the number of + IP addresses that can be allocated from the subnet pool .. option:: --tag @@ -250,8 +250,8 @@ Set subnet pool properties .. option:: --default-quota - Set default quota for subnet pool as the number of - IP addresses allowed in a subnet + Set default per-project quota for this subnet pool as the number of + IP addresses that can be allocated from the subnet pool .. option:: --tag diff --git a/openstackclient/network/v2/subnet_pool.py b/openstackclient/network/v2/subnet_pool.py index a583986856..81765ca17e 100644 --- a/openstackclient/network/v2/subnet_pool.py +++ b/openstackclient/network/v2/subnet_pool.py @@ -191,8 +191,9 @@ class CreateSubnetPool(command.ShowOne): '--default-quota', type=int, metavar='', - help=_("Set default quota for subnet pool as the number of" - "IP addresses allowed in a subnet")), + help=_("Set default per-project quota for this subnet pool " + "as the number of IP addresses that can be allocated " + "from the subnet pool")), _tag.add_tag_option_to_parser_for_create(parser, _('subnet pool')) return parser @@ -389,8 +390,9 @@ class SetSubnetPool(command.Command): '--default-quota', type=int, metavar='', - help=_("Set default quota for subnet pool as the number of" - "IP addresses allowed in a subnet")), + help=_("Set default per-project quota for this subnet pool " + "as the number of IP addresses that can be allocated " + "from the subnet pool")), _tag.add_tag_option_to_parser_for_set(parser, _('subnet pool')) return parser