fixed create subnetpool option '--pool-prefix' as a optional argument in neutronclient

Bug #1477889 reported by zhaobo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Incomplete
Undecided
Unassigned

Bug Description

neutron --version
2.6.0

As the --pool-prefix is needed,but the neutron client show it is a optional argument.So if you just input the name,server will return message like "Invalid input for prefixes. Reason: 'None' is not a valid IP subnet."

Before:
neutron help subnetpool-create l
usage: neutron subnetpool-create [-h] [-f {html,json,shell,table,value,yaml}]
                                 [-c COLUMN] [--max-width <integer>]
                                 [--prefix PREFIX]
                                 [--request-format {json,xml}]
                                 [--tenant-id TENANT_ID]
                                 [--min-prefixlen MIN_PREFIXLEN]
                                 [--max-prefixlen MAX_PREFIXLEN]
                                 [--default-prefixlen DEFAULT_PREFIXLEN]
                                 [--pool-prefix PREFIXES] [--shared]
                                 name

Create a subnetpool for a given tenant.

positional arguments:
  name Name of subnetpool to create.

optional arguments:
  -h, --help show this help message and exit
  --request-format {json,xml}
                        The XML or JSON request format.
  --tenant-id TENANT_ID
                        The owner tenant ID.
  --min-prefixlen MIN_PREFIXLEN
                        Subnetpool minimum prefix length.
  --max-prefixlen MAX_PREFIXLEN
                        Subnetpool maximum prefix length.
  --default-prefixlen DEFAULT_PREFIXLEN
                        Subnetpool default prefix length.
  --pool-prefix PREFIXES
                        Subnetpool prefixes (This option can be repeated).
  --shared Set the subnetpool as shared.

output formatters:
  output formatter options

  -f {html,json,shell,table,value,yaml}, --format {html,json,shell,table,value,yaml}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, 0 to disable

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX add a prefix to all variable names

WISH:
usage: neutron subnetpool-create [-h] [-f {html,json,shell,table,value,yaml}]
                                 [-c COLUMN] [--max-width <integer>]
                                 [--prefix PREFIX]
                                 [--request-format {json,xml}]
                                 [--tenant-id TENANT_ID]
                                 [--min-prefixlen MIN_PREFIXLEN]
                                 [--max-prefixlen MAX_PREFIXLEN]
                                 [--default-prefixlen DEFAULT_PREFIXLEN]
                                 [--shared]
                                 name [POOL-RREFIX]

Create a subnetpool for a given tenant.

positional arguments:
  name Name of subnetpool to create.
  POOL-RREFIX Subnetpool prefixes (This option can be repeated).

optional arguments:
  -h, --help show this help message and exit
  --request-format {json,xml}
                        The XML or JSON request format.
  --tenant-id TENANT_ID
                        The owner tenant ID.
  --min-prefixlen MIN_PREFIXLEN
                        Subnetpool minimum prefix length.
  --max-prefixlen MAX_PREFIXLEN
                        Subnetpool maximum prefix length.
  --default-prefixlen DEFAULT_PREFIXLEN
                        Subnetpool default prefix length.
  --shared Set the subnetpool as shared.

output formatters:
  output formatter options

  -f {html,json,shell,table,value,yaml}, --format {html,json,shell,table,value,yaml}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, 0 to disable

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX add a prefix to all variable names

zhaobo (zhaobo6)
Changed in neutron:
assignee: nobody → zhaobo (zhaobo6)
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is > 172 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

Changed in neutron:
assignee: zhaobo (zhaobo6) → nobody
status: New → Incomplete
Changed in neutron:
assignee: nobody → Reedip (reedip-banerjee)
Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

Duplicate of https://bugs.launchpad.net/python-neutronclient/+bug/1536479 and being resolved there...

Changed in neutron:
assignee: Reedip (reedip-banerjee) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.