<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hi,<br>I found <a class="moz-txt-link-freetext" href="https://review.openstack.org/#/c/10276/">https://review.openstack.org/#/c/10276/</a> is just for quantum x-show command and where it uses xx_list as the result of show if the argument is a name.<br>This is binding xx-list and xx-show command.<br><span>I think when we cannot get the resource with the name_or_id, we should:<br>1. use the name_or_id as a name to get the right id<br>2. and then use the id to do the related operation: such as show, delete, and update.<br></span><br>Regards,<br>Yong Sheng Gong<br><br><font color="#990099">-----Yong Sheng Gong/China/IBM@IBMCN wrote: -----</font><div style="padding-left: 5px;"><div style="padding-right: 0px; padding-left: 5px; border-left: 2px solid black;">To: <a class="moz-txt-link-abbreviated" href="mailto:dan@nicira.com">dan@nicira.com</a>, "Salvatore Orlando" <a class="moz-txt-link-rfc2396E" href="mailto:sorlando@nicira.com"><sorlando@nicira.com></a>, <a class="moz-txt-link-abbreviated" href="mailto:gkotton@redhat.com">gkotton@redhat.com</a><br>From: Yong Sheng Gong/China/IBM@IBMCN<br>Date: 07/27/2012 02:57PM<br>Cc: OpenStack Development Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:openstack-dev@lists.openstack.org"><openstack-dev@lists.openstack.org></a><br>Subject: [openstack-dev] [quantum] about use name as command cli's argument<br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <span><br>Hi,<br>I want to talk about the name_or_id argument in quantum client commands.<br></span>For example:<br>1. quantum net-create myname<br>2. quantum net-show myname or id<br>3. quantum subnet-create network_id 10.0.1.0/24 --name mysub<br>here subnet-create cannot use networkname.<br>4.quanum subnet-show mysub<br><br>All in all, If we want to show, delete and update a resource, we can use name or id to specify the resource. When using name,  the number of that resource with the given name must be 1.<br>When we reference a resource in another resource, for example, we create a subnet under a network, we must reference that network by id.<br><br>So, are these implementations acceptable?<br><br>Thanks<br>Yong Sheng Gong<br></font> <div><font face="Courier New,Courier,monospace" size="2">_______________________________________________<br>OpenStack-dev mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></font></div></div></div></font>