Add fixed-ip and floating-ip commands

Adds:
* fixed-ip commands: add, remove
* floating-ip commands: add, create, delete, list, remove
* floating-ip-poo command: list

Also uses NAME_ATTR in the Resource class if present to determine
the attribute to be used for searching in utils.find_resource()

Change-Id: Ifd8fa60f880fc4050dea182ac24553cc2c4bff15
This commit is contained in:
Dean Troyer
2013-04-14 17:02:45 -05:00
parent 95bf187a4f
commit e9021c213b
5 changed files with 315 additions and 1 deletions

@@ -189,11 +189,28 @@ setuptools.setup(
'set_compute-service='
'openstackclient.compute.v2.service:SetService',
'add_fixed-ip=openstackclient.compute.v2.fixedip:AddFixedIP',
'remove_fixed-ip=openstackclient.compute.v2.fixedip:RemoveFixedIP',
'create_flavor=openstackclient.compute.v2.flavor:CreateFlavor',
'delete_flavor=openstackclient.compute.v2.flavor:DeleteFlavor',
'list_flavor=openstackclient.compute.v2.flavor:ListFlavor',
'show_flavor=openstackclient.compute.v2.flavor:ShowFlavor',
'add_floating-ip='
'openstackclient.compute.v2.floatingip:AddFloatingIP',
'create_floating-ip='
'openstackclient.compute.v2.floatingip:CreateFloatingIP',
'delete_floating-ip='
'openstackclient.compute.v2.floatingip:DeleteFloatingIP',
'list_floating-ip='
'openstackclient.compute.v2.floatingip:ListFloatingIP',
'remove_floating-ip='
'openstackclient.compute.v2.floatingip:RemoveFloatingIP',
'list_floating-ip-pool='
'openstackclient.compute.v2.floatingippool:ListFloatingIPPool',
'list_host=openstackclient.compute.v2.host:ListHost',
'show_host=openstackclient.compute.v2.host:ShowHost',