← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1477889] [NEW] fixed create subnetpool option '--pool-prefix' as a optional argument in neutronclient

 

Public bug reported:

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

** Affects: neutron
     Importance: Undecided
     Assignee: zhaobo (zhaobo6)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => zhaobo (zhaobo6)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1477889

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

Status in neutron:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1477889/+subscriptions