34 Commits

Author SHA1 Message Date
gongysh
b204b1b596 Client for agent scheduler extension
blueprint quantum-scheduler

Change-Id: I5bad096d4892ebf1d309fc0a625dca4b2407bc94
2013-02-28 08:11:07 +08:00
Salvatore Orlando
d77f86218e CLI support for network gateway feature
Blueprint nvp-nwgw-extension-client

Adds commands for gateway management, and for connecting
networks to gateways. These commands use the nicira-specific
extension 'nvp-network-gateway'

Change-Id: Iefcba201bc9fd8dce35762514af0f56b29430ccd
2013-02-20 13:40:30 +01:00
Jenkins
ee4cb43185 Merge "Allow known options after unknown ones in list and update command" 2013-02-19 17:20:57 +00:00
gongysh
73b93725fe Allow known options after unknown ones in list and update command
blueprint known-options-location-in-list-update-commands

Change-Id: Icad4fbc0d9f1751bd36573b37ac7fe32987fada9
2013-02-19 15:25:09 +08:00
gongysh
9e3ba2a161 Client for agent extension
blueprint quantum-scheduler

Change-Id: Ic5a2198017cacfb0ff5b5da1461c06b3a0f87ea1
2013-02-19 06:08:34 +08:00
Aaron Rosen
aa2c9628db Add nvp queue support to client
This patch adds the nvp_qos_queue commands to the client
Implements blueprint nvp-qos-extension-client

Change-Id: Ic6d2a13ecb82e7e68b52b3143befb2f34b5e759f
2013-02-14 08:54:27 -08:00
Jason Zhang
4f3b47d596 Stored the quantum commands list to the variable.
By storing the quantum commands list to
the variable, the subclass can depend
the quantum shell to parse the command.

Fixes: bug 1116837

Change-Id: I0a6f3226d326cf015e262e4ddf364d6f9a91d041
2013-02-05 17:59:41 -08:00
He Jie Xu
6cc6875b38 Remove gettext.install from quantumclient.__init__
fix bug 1097628

Change-Id: Ic6f2dfb4593fa507fb788786616bff6af3cbb896
2013-02-05 16:47:19 +08:00
Ilya Shakhat
2bca8ee440 The change implements LBaaS CLI commands.
Implements: blueprint lbaas-cli

New commands:
 * Vip: lb-vip-create, lb-vip-list, lb-vip-show, lb-vip-update,
   lb-vip-delete
 * Pool: lb-pool-create, lb-pool-list, lb-pool-show, lb-pool-update,
   lb-pool-delete, lb-pool-stats
 * Member: lb-member-create, lb-member-list, lb-member-show,
   lb-member-update, lb-member-delete
 * Health Monitor: lb-healthmonitor-create, lb-healthmonitor-list,
   lb-healthmonitor-show, lb-healthmonitor-update, lb-healthmonitor-delete,
   lb-healthmonitor-associate, lb-healthmonitor-disassociate

Change-Id: Idaa569024c24955886a836e3dfedd009fed87007
2013-01-28 12:44:02 +04:00
Jenkins
8c15ef15ed Merge "Make "quantum help" to show a list of subcommands." 2013-01-15 09:23:40 +00:00
gongysh
ee3ab2d7af Allow known options defined after position arguments.
We run the argument parser to split known options and unknown options.
Make '-' work and have the same effect as '_' in both known and unknown
option parts.
Make metavar Uppercase.

blueprint options-location

Change-Id: Ic27b278484133c8b83e3b031a0810a76b050219f
2013-01-13 23:09:08 +09:00
Akihiro MOTOKI
a9d5479ecf Make "quantum help" to show a list of subcommands.
Fix bug 1023260

All other OpenStack clients (nova, keystone, glance, ....) accepts
just "help" which displays a list of subcommands. This commit makes
quantum command consist with other OpenStack projects.

After this change help behavior of quantum command becomes as follows:
Show general help message:
  quantum --help
  quantum help
Show help message of subcommand
  quantum help <subcommand>
  quantum <subcommand> --help

Change-Id: I34ca0df809da04f9b9b9275c697e6aafca312cfe
2013-01-09 23:27:24 +09:00
Zhongyue Luo
093bac1bc6 Fix import order nits
Change-Id: I7c95fa2db1d719f6ed34468ad12b7a9e4c9e794d
2012-12-31 22:48:43 +08:00
Gary Kotton
d48d35aa9b Ensures that help alignment is not hard coded
Fixes bug 1086770

Change-Id: I6fa3edea83783e274d78e0c0195bca69d63b6e04
2012-12-05 12:17:00 +00:00
Jenkins
041a510a3e Merge "Convenience cmds for l3" 2012-11-16 14:56:07 +00:00
ivan-zhu
eb7a7443a6 Convenience cmds for l3
Bug #1049551

Add two CLI and unit tests:
quantum net-external-list
(runs net-list with router:external=True filter)
quantum router-port-list <router-id/name>
(runs port-list, filtering with device_id equal to specified router)

Change-Id: I9a9668836ac24d4cbc6a3867ec031611b64ded14
2012-11-13 09:59:34 +08:00
Aaron Rosen
4ca036541c Adds securitygroup implementation
Implements blueprint quantum-client-security-groups API

Change-Id: I9b6ad8525909688915fadefc75075406b8380327
2012-10-31 00:17:18 -07:00
gongysh
c8e7ed26be Generate bash_completion string so that we can use bash completion.
Bug #1063500

To install, copy tools/quantum.bash_completion to
/etc/bash_completion.d/quantum

Change-Id: I0afff3967c63111854455226fc90092f5bc7845a
2012-10-08 18:48:26 +08:00
yong sheng gong
62f508939e *-list command shows only limited fields normally.
Bug #1036051

We add list_columns in list commands to limit the output columns.
The behaviour is overriden if we use -c in command.

Change-Id: I0fa6c73cd7270d86aff01d3790d59c8d4e8a235a
2012-09-01 11:47:22 +08:00
Dean Troyer
5f211956f1 Change '_' to '-' in options
This changes every command-line option with a '_' in its name
and changes them to '-'.  The old option names are maintained
for backward compatibility but are no longer in the help text.

BP command-options

Change-Id: I94daea544ab613321c0a1c4de45092be6dc8471d
2012-08-24 09:46:47 -05:00
Dan Wendlandt
38abece8a6 initial client + CLI support for routers + floating ips
bp quantum-client-l3-floating-ip

The task also does the following:
1. Fixes alignment of the --help output
2. Ensures that a show command prints a dictionary correctly

Change-Id: Ib61b3e8748a7bd476ec008ab6ce20ab852e92f58
2012-08-22 06:14:51 -04:00
Jenkins
fa84c933b4 Merge "add ext list and show commands." 2012-08-14 16:29:16 +00:00
Jenkins
f29ad11c2f Merge "remove cli.app in quantum client error message." 2012-08-13 05:53:03 +00:00
Jenkins
47f827d8a5 Merge "enable -h | --help after command to show the command usage." 2012-08-12 17:08:58 +00:00
Yong Sheng Gong
fdc12bd650 add ext list and show commands.
Change-Id: I3bdf1a3b066ee12572468b8d7abee96eb07f9257
2012-08-12 22:47:05 +08:00
Yong Sheng Gong
a369457107 remove cli.app in quantum client error message.
blueprint f-3-cli-usability-improvments

Change-Id: I3f73f5f0e915ae62e5056abb3f04d7f7f2e68ceb
2012-08-12 11:38:58 +08:00
Yong Sheng Gong
80e89c929b enable -h | --help after command to show the command usage.
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
2012-08-12 11:18:01 +08:00
Yong Sheng Gong
8f1ce248b3 Add quota commands to change quota of a tenant.
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
2012-08-12 07:26:27 +08:00
Jenkins
d70620ce96 Merge "Use -h, --help to show help messages." 2012-07-14 16:32:54 +00:00
Yong Sheng Gong
7f3e6eeb7a Remove quantum client codes for API v1.0
Bug #1021546

Change-Id: Ic628db01034bc6dfb5fad3d6a2905e243900229a
2012-07-13 07:27:43 +08:00
Akihiro MOTOKI
4631213056 Use -h, --help to show help messages.
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
2012-07-13 02:26:11 +09:00
Yong Sheng Gong
1586c923d9 Make quantum cli consistent with other cli's practice.
Bug 1011759

We use dash in command names, underscore in options or arguments,
adopt noun-verb format command names.

Change-Id: Ibeb2b4a31929dbb7008cec3b04bd77e75d9ace1a
2012-07-05 15:06:08 +08:00
Yong Sheng Gong
50c46f61d1 add --fixed-ip argument to create port
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
2012-06-25 18:19:18 +08:00
Yong Sheng Gong
dd803f8e26 add keystone support, new command interface, API v2.0
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
2012-06-21 00:17:39 +08:00