update/delete/create resource with reference to resource by name

Bug #1030180 reported by yong sheng gong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Undecided
yong sheng gong

Bug Description

TO improve usability, we can use name to reference resource via name_or_id to do modification, deletion and creation:
quantum net-update name_or_id --key value
quantum net-delete name_or_id
quantum subnet-create networkname_or_id 10.0.1.0/24

affects: quantum → python-quantumclient
Changed in python-quantumclient:
assignee: nobody → yong sheng gong (gongysh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-quantumclient (master)

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

Changed in python-quantumclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-quantumclient (master)

Reviewed: https://review.openstack.org/10452
Committed: http://github.com/openstack/python-quantumclient/commit/defb5481b0e7e2469405de98e6dd49ed239ef986
Submitter: Jenkins
Branch: master

commit defb5481b0e7e2469405de98e6dd49ed239ef986
Author: Yong Sheng Gong <email address hidden>
Date: Sun Jul 29 02:56:43 2012 +0800

    Add name or id to quantum cli commands.
    Bug #1030180

    We first lookup the resource id via id if it looks like an id.
    If we cannot find it via id, we will look it up via name.
    All of the update/show/delete support reference resource via name or id.
    To create port/subnet, we can refercen network via network's name.
    Also in port creation, we support reference subnet in fixed_ip via its name.

    quantum_test.sh is added to test the command lines after running 'python setup.py install'

    Change-Id: I54b6912e2c4044ba70aaf604cd79520022de262f

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

Related blueprints

Remote bug watches

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