summaryrefslogtreecommitdiff
path: root/novaclient/v2/floating_ip_pools.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/v2/floating_ip_pools.py')
-rw-r--r--novaclient/v2/floating_ip_pools.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/novaclient/v2/floating_ip_pools.py b/novaclient/v2/floating_ip_pools.py
new file mode 100644
index 0000000..7666bd5
--- /dev/null
+++ b/novaclient/v2/floating_ip_pools.py
@@ -0,0 +1,32 @@
1# Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
2#
3# All Rights Reserved.
4#
5# Licensed under the Apache License, Version 2.0 (the "License"); you may
6# not use this file except in compliance with the License. You may obtain
7# a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14# License for the specific language governing permissions and limitations
15# under the License.
16
17from novaclient import base
18
19
20class FloatingIPPool(base.Resource):
21 def __repr__(self):
22 return "<FloatingIPPool: name=%s>" % self.name
23
24
25class FloatingIPPoolManager(base.ManagerWithFind):
26 resource_class = FloatingIPPool
27
28 def list(self):
29 """
30 Retrieve a list of all floating ip pools.
31 """
32 return self._list('/os-floating-ip-pools', 'floating_ip_pools')