diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2017-04-17 15:03:14 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2017-04-18 08:57:34 -0500 |
| commit | 107cad200a15a3131525436b483dbef5e88b9508 (patch) | |
| tree | 98d70d245837e533fd407ce84634485a25a5f50a /openstackclient/api | |
| parent | 7e1350815e09e0aa669c0ad9d5d3c041ca505b89 (diff) | |
| download | python-openstackclient-107cad200a15a3131525436b483dbef5e88b9508.tar.gz | |
Low-level Compute v2 API: floating ip pool
api.compute.APIv2 floating ip pool function.
novaclient 8.0 is now released without support for the previously
deprecated nova-net functions, so include a new low-level REST
implementation of the removed APIs.
Also includes a handful of cleanups that the previous security group and
floating IP reviews missed.
Change-Id: I20116ec4fc1113857d8d917bfb30fa3170d05b9f
Diffstat (limited to 'openstackclient/api')
| -rw-r--r-- | openstackclient/api/compute_v2.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/openstackclient/api/compute_v2.py b/openstackclient/api/compute_v2.py index 3141728a..65022671 100644 --- a/openstackclient/api/compute_v2.py +++ b/openstackclient/api/compute_v2.py @@ -168,13 +168,30 @@ class APIv2(api.BaseAPI): https://developer.openstack.org/api-ref/compute/#show-floating-ip-address-details :returns: - list of security groups names + list of floating IPs """ url = "/os-floating-ips" return self.list(url)["floating_ips"] + # Floating IP Pools + + def floating_ip_pool_list( + self, + ): + """Get floating IP pools + + https://developer.openstack.org/api-ref/compute/?expanded=#list-floating-ip-pools + + :returns: + list of floating IP pools + """ + + url = "/os-floating-ip-pools" + + return self.list(url)["floating_ip_pools"] + # Networks def network_create( |
