Add show limits command

* This is a combination of the compute and volume API limits as they are
  very similar.  As such, the command lives in a new command group
  'openstack.common' that is unversioned.
* Implements 'limits show [--absolute|--rate]

Updated for https://review.openstack.org/#/c/36772/

Bug: 1172057

Change-Id: I2bd181cd0d098f7143360ae67944c2f221379af5
This commit is contained in:
Dean Troyer 2013-07-09 17:10:33 -05:00
parent 3aeda3c12f
commit ce18132808
2 changed files with 7 additions and 0 deletions
openstackclient
setup.cfg

@ -331,6 +331,10 @@ class OpenStackShell(app.App):
self.command_manager.add_command_group(
'openstack.' + api + version)
# Commands that span multiple APIs
self.command_manager.add_command_group(
'openstack.common')
# This is the naive extension implementation referred to in
# blueprint 'client-extensions'
# Extension modules can register their commands in an

@ -31,6 +31,9 @@ console_scripts =
openstack.cli =
openstack.common =
limits_show = openstackclient.common.limits:ShowLimits
openstack.identity.v2_0 =
ec2_credentials_create = openstackclient.identity.v2_0.ec2creds:CreateEC2Creds
ec2_credentials_delete = openstackclient.identity.v2_0.ec2creds:DeleteEC2Creds