Skip to content

Commit 12aa63e

Browse files
committed
Update Subnet Pools Documentation
Update documentation for the SubnetPools resource. This includes adding the resource to the users documentation and fixing broken links in the network proxy documentation. Change-Id: I0c5b51af81bd01cd74da682e70b8bf421a87d19d Partial-Bug: #1528669
1 parent e10926c commit 12aa63e

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

doc/source/users/resources/network/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ Network Resources
2020
v2/security_group
2121
v2/security_group_rule
2222
v2/subnet
23+
v2/subnet_pool
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
openstack.network.v2.subnet_pool
2+
================================
3+
4+
.. automodule:: openstack.network.v2.subnet_pool
5+
6+
The SubnetPool Class
7+
--------------------
8+
9+
The ``SubnetPool`` class inherits from :class:`~openstack.resource.Resource`.
10+
11+
.. autoclass:: openstack.network.v2.subnet_pool.SubnetPool
12+
:members:

openstack/network/v2/_proxy.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,9 +1337,8 @@ def create_subnet_pool(self, **attrs):
13371337
"""Create a new subnet pool from attributes
13381338
13391339
:param dict attrs: Keyword arguments which will be used to create
1340-
a :class:`~openstack.network.v2.subnet_pool.
1341-
SubnetPool`, comprised of the properties on the
1342-
SubnetPool class.
1340+
a :class:`~openstack.network.v2.subnet_pool.SubnetPool`,
1341+
comprised of the properties on the SubnetPool class.
13431342
13441343
:returns: The results of subnet pool creation
13451344
:rtype: :class:`~openstack.network.v2.subnet_pool.SubnetPool`
@@ -1350,8 +1349,7 @@ def delete_subnet_pool(self, subnet_pool, ignore_missing=True):
13501349
"""Delete a subnet pool
13511350
13521351
:param subnet_pool: The value can be either the ID of a subnet pool or
1353-
a :class:`~openstack.network.v2.subnet_pool.
1354-
SubnetPool` instance.
1352+
a :class:`~openstack.network.v2.subnet_pool.SubnetPool` instance.
13551353
:param bool ignore_missing: When set to ``False``
13561354
:class:`~openstack.exceptions.ResourceNotFound` will be
13571355
raised when the subnet pool does not exist.
@@ -1382,8 +1380,7 @@ def get_subnet_pool(self, subnet_pool):
13821380
"""Get a single subnet pool
13831381
13841382
:param subnet_pool: The value can be the ID of a subnet pool or a
1385-
:class:`~openstack.network.v2.subnet_pool.
1386-
SubnetPool` instance.
1383+
:class:`~openstack.network.v2.subnet_pool.SubnetPool` instance.
13871384
13881385
:returns: One :class:`~openstack.network.v2.subnet_pool.SubnetPool`
13891386
:raises: :class:`~openstack.exceptions.ResourceNotFound`
@@ -1406,8 +1403,7 @@ def update_subnet_pool(self, subnet_pool, **attrs):
14061403
"""Update a subnet pool
14071404
14081405
:param subnet_pool: Either the ID of a subnet pool or a
1409-
:class:`~openstack.network.v2.subnet_pool.
1410-
SubnetPool` instance.
1406+
:class:`~openstack.network.v2.subnet_pool.SubnetPool` instance.
14111407
:attrs kwargs: The attributes to update on the subnet pool
14121408
represented by ``value``.
14131409

0 commit comments

Comments
 (0)