neutron option --ha should not be case sensitive

Bug #1392184 reported by Andre Naehring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
In Progress
Undecided
venkata anil

Bug Description

Creating a router with neutron on cli, I am forced to use "True" for ha option. This should not be case sensitive:

oslatest:~ # neutron router-create --ha true externalRouter
usage: neutron router-create [-h] [-f {shell,table,value}] [-c COLUMN]
                             [--max-width <integer>] [--prefix PREFIX]
                             [--request-format {json,xml}]
                             [--tenant-id TENANT_ID] [--admin-state-down]
                             [--distributed {True,False}] [--ha {True,False}]
                             NAME
neutron router-create: error: argument --ha: invalid choice: u'true' (choose from 'True', 'False')

oslatest:~ # neutron router-create --ha True externalRouter
Not enough l3 agents available to ensure HA. Minimum required 2, available 1.

Changed in python-neutronclient:
assignee: nobody → venkata anil (anil-venkata)
status: New → In Progress
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Not strictly duplicated by #1368934 but the issue is largely the same.

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

The fix above addressed the case sensitive problems for the HA attribute too.

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.