summaryrefslogtreecommitdiff
path: root/quantumclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "remove cli.app in quantum client error message."Jenkins2012-08-131-2/+25
|\
| * remove cli.app in quantum client error message.Yong Sheng Gong2012-08-121-2/+25
| | | | | | | | | | | | blueprint f-3-cli-usability-improvments Change-Id: I3f73f5f0e915ae62e5056abb3f04d7f7f2e68ceb
* | Merge "deal with -c option when the list result is empty."Jenkins2012-08-122-0/+32
|\ \
| * | deal with -c option when the list result is empty.Yong Sheng Gong2012-08-122-0/+32
| |/ | | | | | | | | | | bug #1033123 Change-Id: Idd10e9ae8fd57e6173ef7f92411176834efebff5
* | Merge "enable -h | --help after command to show the command usage."Jenkins2012-08-121-0/+13
|\ \
| * | enable -h | --help after command to show the command usage.Yong Sheng Gong2012-08-121-0/+13
| |/ | | | | | | | | | | | | | | Bug #1023260 we caculate the position of -h|--help and command, if -h|--help is after command, we replace the command with 'help' command. Change-Id: Ieb5fc9d37daafd704edb71e35b74dbf83cb69a4c
* | Add quota commands to change quota of a tenant.Yong Sheng Gong2012-08-123-2/+244
|/ | | | | | | | | | | | | | | | blueprint quantum-api-quotas quantum quota-show --tenant_id: if tenant_id is not specified, the server will get tenant_id from context quantum quota-update --network <num> --port <num> --subnet <num> --tenant_id <id>: if tenant_id is not specified, the server will get tenant_id from context quantum quota-list: list all tenants' quota values after the updation. quantum quota-delete --tenant_id <id>: delete the given tenant's customized quota values. Change-Id: Ib0efb159bea96837bf4e35eaefa5e172c1c9f34a
* Add name or id to quantum cli commands.Yong Sheng Gong2012-08-058-134/+244
| | | | | | | | | | | | | | 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
* Allow to retrieve objects by nameSalvatore Orlando2012-07-269-28/+134
| | | | | | | | | | | | | | | Fixes bug 979527 xxx-show commands now can accept either an id or a name of the resource to retrieve, similarly to the "nova get" command. This has been preferred to using mutually exclusive keyword argument, in order to avoid confusion with other CLI tools. NOTE: the current patch allow search by name only for networks. The restriction will be lifted once name attributes for port and subnets are added. Change-Id: Id186139a01c9f2cfc36ca3405b4024bd7780622e
* Merge "Use -h, --help to show help messages."Jenkins2012-07-141-1/+1
|\
| * Use -h, --help to show help messages.Akihiro MOTOKI2012-07-131-1/+1
| | | | | | | | | | | | | | | | | | Fixes bug 1023260 "quantumv2" command used '-H' and '--Help' to show help messages, but it is inconsistent to the convention of option names used in other OpenStack client lib commands. This commit fixes it. Change-Id: I85c1e79c2cd08bcc0112ed2f10ca8210e9384687
* | Remove quantum client codes for API v1.0Yong Sheng Gong2012-07-1314-3908/+13
| | | | | | | | | | | | Bug #1021546 Change-Id: Ic628db01034bc6dfb5fad3d6a2905e243900229a
* | Support allocation pools for subnetGary Kotton2012-07-113-9/+73
|/ | | | | | | | | | | | | Fixes bug 1022227 Usage examples: create_subnet --tenant_id <id> --allocation_pool start=1.1.1.1,end=1.1.1.10 <networkid> <gw> More than one allocation pool can be added by doing the following: --allocation_pool start=1.1.1.1,end=1.1.1.10 --allocation_pool start=1.1.1.123,end=1.1.1.125 ... Change-Id: I313625b6a8c1da6eaca8b1943da52738978ed72b
* Make quantum cli consistent with other cli's practice.Yong Sheng Gong2012-07-058-168/+113
| | | | | | | | | Bug 1011759 We use dash in command names, underscore in options or arguments, adopt noun-verb format command names. Change-Id: Ibeb2b4a31929dbb7008cec3b04bd77e75d9ace1a
* Add post-tag versioning.0.1.1Monty Taylor2012-06-261-24/+114
| | | | Change-Id: I0667c7b72c36a20827730dd829a12430954b666e
* add --fixed-ip argument to create port0.1.0Yong Sheng Gong2012-06-259-43/+146
| | | | | | | | | | | | | | | | | | | | | | | | add --fixed-ip argument to create port and add list and dict type for unknow option now we can use known option feature: quantumv2 create_port --fixed-ip subnet_id=<id>,ip_address=<ip> --fixed-ip subnet_id=<id>, ip_address=<ip2> network_id or unknown option feature: one ip: quantumv2 create_port network_id --fixed_ips type=dict list=true subnet_id=<id>,ip_address=<ip> two ips: quantumv2 create_port network_id --fixed_ips type=dict subnet_id=<id>,ip_address=<ip> subnet_id=<id>,ip_address=<ip2> to create port Please download: https://review.openstack.org/#/c/8794/4 and set core_plugin = quantum.db.db_base_plugin_v2.QuantumDbPluginV2 on quantum server side Patch 2: support cliff 1.0 Patch 3: support specify auth strategy, for now, any other auth strategy than keystone will disable auth, format port output Patch 4: format None as '' when outputing, deal with list of dict, add QUANTUMCLIENT_DEBUG env to enable http req/resp print, which is helpful for testing nova integration Patch 5: fix interactive mode, and initialize_app problem Change-Id: I693848c75055d1947862d55f4b538c1dfb1e86db
* add keystone support, new command interface, API v2.0Yong Sheng Gong2012-06-2129-110/+3534
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | blueprint new-cli Bug #1001053 Implement new commands interface, ready for v2.0. adopt cliff arch. new client binary is quantumv2. After it is stable, we will remove quantum binary. Httplibs2 is used. usage: https://docs.google.com/document/d/1e_4UtnhFfgtnsB8EVB31BZKldaVzl_BlsGnGBrKmcDk/edit Patch 2: add license header Patch 3: add v1.0 support, fix show net details Patch 4: quantumclient network api v2.0 Patch 5: subnet and port commands for api v2.0, add fields selector Patch 6: add test cases Patch 7: fix interactive mode, modify according to comments and https://review.openstack.org/#/c/8366/, add two tasks to BP: noauth and openstack common Patch 8: fix log problem Patch 9: modify according to the comments by dan on patch 5 Patch 10: just trigger jenkins Patch 11: pep 1.3 fix Patch 12: cliff and prettytable to more than 0.6.0 Patch 13: change setup.py to include more packages Patch 14: pep check on jenkins Patch 15: add license text to empty __init__.py files Patch 16: fix v1.1 test cases after server changes Change-Id: Ibbbdd834371c6a023b31e4797718fc0fe9786d89
* Add initial docs.Monty Taylor2012-06-143-0/+252
| | | | Change-Id: I846eec12e800c15a545946604fe77a0a6b83fb46
* quit and print usage when unsupported version specified.Yong Sheng Gong2012-05-241-1/+2
| | | | | | bug 974835 Change-Id: Iddbf72281be0d4dd819b6f51cc7950d90af0dbbc
* Use --debug to enable printing HTTP message(s) between client andfolsom-1Yong Sheng Gong2012-05-232-6/+14
| | | | | | | | | | | | server, besides logging verbosely. fix Bug #993859 change --verbose into --debug, which is a practice by other clients (nova and glance). note: httplib prints message by print. Patch 2: fix pep8, modify according to some comments Change-Id: Ibc959cca7d89c18b6d5c902f2e98bb856102c51c
* Clean up codebase in accordance with HACKING/PEP8.Maru Newby2012-05-026-251/+352
| | | | | | | * Adds HACKING.rst * Addresses 981208 Change-Id: I3d701ca9a748a0c4ceada7d76a31dc6bb2d5969b
* Remove server-specific functionality.Maru Newby2012-04-2412-0/+3395
* Moved server-specific functionality found in quantum.common to the quantum repo. * Renamed primary package from quantum -> quantumclient. * Addresses bug 977711 and bug 921933 Change-Id: If34553924c8dfcc6b148c1d91f173a4b81eeb95a