The operation of router not only supports id also supports name

Bug #1288656 reported by shihanzhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Undecided
shihanzhang

Bug Description

The parameter of router operation not only supports id also supports name, for example:
root@shz-dev:/etc/ldap/schema# neutron help router-gateway-clear
usage: neutron router-gateway-clear [-h] [--request-format {json,xml}]
                                    router-id

Remove an external network gateway from a router.

positional arguments:
  router-id ID of the router

optional arguments:
  -h, --help show this help message and exit
  --request-format {json,xml}
                        the xml or json request format

it can use name of router to do it!
the folowing API hava same problem:
neutron router-gateway-clear
router-interface-add
router-gateway-set

Changed in python-neutronclient:
assignee: nobody → shihanzhang (shihanzhang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/78577

Changed in python-neutronclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-neutronclient (master)

Change abandoned by Kyle Mestery (<email address hidden>) on branch: master
Review: https://review.openstack.org/78577
Reason: This change is old enough and hasn't seen any updates since March 11, 2014. Abandoning it, please revive it if you plan to work on it again.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-neutronclient (master)

Reviewed: https://review.openstack.org/78577
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=78b63107f3d6be7bf1220e3c99dc667cfbb29aeb
Submitter: Jenkins
Branch: master

commit 78b63107f3d6be7bf1220e3c99dc667cfbb29aeb
Author: shihanzhang <email address hidden>
Date: Thu Mar 6 18:46:33 2014 +0800

    Parameter support both id and name

    The parameter of router operation not only supports id also supports name,
    so it should modify the hint.

    Change-Id: Ib5ddb771fb87181bcf638499703c03ebcc9cc680
    Closes-bug: #1288656

Changed in python-neutronclient:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in python-neutronclient:
milestone: none → 2.3.11
status: Fix Committed → Fix Released
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.