Mailing List Archive

Fw: Change in openstack/python-quantumclient[master]: add keystone support, new command interface
Hi Dan,
I have implemented part of the new cli:
1. support keystone
2. new interface
3. fix filter bug

see https://review.openstack.org/#/c/7596/"]https://review.openstack.org/#/c/7596/
some running sample:

1: [root@robinlinux python-quantumclient]# quantumv2 -h
usage: quantumv2 [--version] [-v] [-q] [-h] [--debug]
[--os-auth-url <auth-url>]
[--os-tenant-name <auth-tenant-name>]
[--os-username <auth-username>]
[--os-password <auth-password>]
[--os-region-name <auth-region-name>]
[--os-quantum-api-version <quantum-api-version>]
[--os-token <token>] [--os-url <url>]

Command-line interface to the Quantum APIs

optional arguments:
--version show program's version number and exit
-v, --verbose Increase verbosity of output. Can be repeated.
-q, --quiet suppress output except warnings and errors
-h, --help show this help message and exit
--debug show tracebacks on errors
--os-auth-url <auth-url>
Authentication URL (Env: OS_AUTH_URL)
--os-tenant-name <auth-tenant-name>
Authentication tenant name (Env: OS_TENANT_NAME)
--os-username <auth-username>
Authentication username (Env: OS_USERNAME)
--os-password <auth-password>
Authentication password (Env: OS_PASSWORD)
--os-region-name <auth-region-name>
Authentication region name (Env: OS_REGION_NAME)
--os-quantum-api-version <quantum-api-version>
QAUNTUM API version, default=2.0 (Env:
OS_QUANTUM_API_VERSION)
--os-token <token> Defaults to env[OS_TOKEN]
--os-url <url> Defaults to env[OS_URL]

Commands:
create_net Create a network for a given tenant
create_port Create port for a given network
delete_net Delete a given network
delete_port Delete a given port
help print detailed help for another command
list_nets List networks that belong to a given tenant
list_ports List ports that belong to a given tenant's network
plug_iface Plug interface to a given port
show_iface Show interface on a given port
show_net Show information of a given network
show_port Show information of a given port
unplug_iface Unplug interface from a given port
update_net Update network's information
update_port Update information of a given port
2. based on env:
[root@robinlinux python-quantumclient]# quantumv2 list_nets default
+--------------------------------------+
| ID |
+--------------------------------------+
| 12951318-1ce7-47d5-9f26-4a88108d9446 |
| 130ccb3e-a159-4e82-91df-a088b52fc418 |
| 36addc84-c6e9-41db-8f19-6764f8502f94 |
| 4e2232b4-c1eb-4aac-b0ef-2ec97b4968bf |
| 6d45d880-a810-435d-80bc-766e4798ca67 |
| 767f49ff-b73d-4d61-853f-14386869de87 |
| 7a068b68-c736-42ab-9e43-c9d83c57627e |
| e9424a76-6db4-4c93-97b6-ec311cd51f19 |
+--------------------------------------+
3.
[root@robinlinux python-quantumclient]# quantumv2 --os-username=admin --os-password=password --os-tenant-name=admin --os-auth-url=http://localhost:5000/v2.0"]http://localhost:5000/v2.0 list_nets default
+--------------------------------------+
| ID |
+--------------------------------------+
| 12951318-1ce7-47d5-9f26-4a88108d9446 |
| 130ccb3e-a159-4e82-91df-a088b52fc418 |
| 36addc84-c6e9-41db-8f19-6764f8502f94 |
| 4e2232b4-c1eb-4aac-b0ef-2ec97b4968bf |
| 6d45d880-a810-435d-80bc-766e4798ca67 |
| 767f49ff-b73d-4d61-853f-14386869de87 |
| 7a068b68-c736-42ab-9e43-c9d83c57627e |
| e9424a76-6db4-4c93-97b6-ec311cd51f19 |
+--------------------------------------+


Please have a review.

Thanks
Yong Sheng Gong



-----Forwarded by Yong Sheng Gong/China/IBM on 05/19/2012 09:10PM -----To: Yong Sheng Gong/China/IBM@IBMCN
From: "Jenkins (Code Review)" <review@openstack.org>
Date: 05/19/2012 09:07PM
Subject: Change in openstack/python-quantumclient[master]: add keystone support, new command interface

Jenkins has posted comments on this change.

Change subject: add keystone support, new command interface
......................................................................


Patch Set 1: Verified

Build Successful

https://jenkins.openstack.org/job/gate-python-quantumclient-merge/76/"]https://jenkins.openstack.org/job/gate-python-quantumclient-merge/76/ : SUCCESS

--
To view, visit https://review.openstack.org/7596"]https://review.openstack.org/7596
To unsubscribe, visit https://review.openstack.org/settings"]https://review.openstack.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ibbbdd834371c6a023b31e4797718fc0fe9786d89
Gerrit-PatchSet: 1
Gerrit-Project: openstack/python-quantumclient
Gerrit-Branch: master
Gerrit-Owner: gongysh <gongysh@cn.ibm.com>
Gerrit-Reviewer: Jenkins