[Bug 1589432] [NEW] neutron cli puts the required parameters into option arguments group

Yang Yu yangyu at vmware.com
Mon Jun 6 09:22:48 UTC 2016


Public bug reported:

In neutron cli, there are many scenario like below, some parameters such
as --peer-ip and --remote-as are defined as required ones, but they are
put into optional arguments group. That is wrong.

usage: neutron bgp-peer-create [-h] [-f {json,shell,table,value,yaml}]
                               [-c COLUMN] [--max-width <integer>]
                               [--noindent] [--prefix PREFIX]
                               [--request-format {json}]
                               [--tenant-id TENANT_ID] --peer-ip
                               PEER_IP_ADDRESS --remote-as PEER_REMOTE_AS
                               [--auth-type PEER_AUTH_TYPE]
                               [--password AUTH_PASSWORD]
                               NAME

Create a BGP Peer.

positional arguments:
  NAME                  Name of the BGP peer to create.

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json}
                        DEPRECATED! Only JSON request format is supported.
  --tenant-id TENANT_ID
                        The owner tenant ID.
  --peer-ip PEER_IP_ADDRESS
                        Peer IP address.
  --remote-as PEER_REMOTE_AS
                        Peer AS number. (Integer in [1, 65535] is allowed.)
  --auth-type PEER_AUTH_TYPE
                        Authentication algorithm. Supported algorithms:
                        none(default), md5
  --password AUTH_PASSWORD
                        Authentication password.

** Affects: python-neutronclient (Ubuntu)
     Importance: Undecided
     Assignee: Yang Yu (yuyangbj)
         Status: New

** Changed in: python-neutronclient (Ubuntu)
     Assignee: (unassigned) => Yang Yu (yuyangbj)

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-neutronclient in Ubuntu.
https://bugs.launchpad.net/bugs/1589432

Title:
  neutron cli puts the required parameters into option arguments group

Status in python-neutronclient package in Ubuntu:
  New

Bug description:
  In neutron cli, there are many scenario like below, some parameters
  such as --peer-ip and --remote-as are defined as required ones, but
  they are put into optional arguments group. That is wrong.

  usage: neutron bgp-peer-create [-h] [-f {json,shell,table,value,yaml}]
                                 [-c COLUMN] [--max-width <integer>]
                                 [--noindent] [--prefix PREFIX]
                                 [--request-format {json}]
                                 [--tenant-id TENANT_ID] --peer-ip
                                 PEER_IP_ADDRESS --remote-as PEER_REMOTE_AS
                                 [--auth-type PEER_AUTH_TYPE]
                                 [--password AUTH_PASSWORD]
                                 NAME

  Create a BGP Peer.

  positional arguments:
    NAME                  Name of the BGP peer to create.

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json}
                          DEPRECATED! Only JSON request format is supported.
    --tenant-id TENANT_ID
                          The owner tenant ID.
    --peer-ip PEER_IP_ADDRESS
                          Peer IP address.
    --remote-as PEER_REMOTE_AS
                          Peer AS number. (Integer in [1, 65535] is allowed.)
    --auth-type PEER_AUTH_TYPE
                          Authentication algorithm. Supported algorithms:
                          none(default), md5
    --password AUTH_PASSWORD
                          Authentication password.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-neutronclient/+bug/1589432/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list