summaryrefslogtreecommitdiff
path: root/doc/source/cli/command-objects/network-auto-allocated-topology.rst
diff options
context:
space:
mode:
authorEric Fried <openstack@fried.cc>2019-10-28 17:27:38 -0500
committerEric Fried <openstack@fried.cc>2019-11-01 14:24:30 -0500
commitcd6c285cc6c2274e6b42cc452ba4a61a3487ca23 (patch)
tree334eddf792c9287511a8d419e82c2e6777fd63b2 /doc/source/cli/command-objects/network-auto-allocated-topology.rst
parent61ad83b57580c76a1c448e03064c4df6bcc01e87 (diff)
downloadpython-openstackclient-cd6c285cc6c2274e6b42cc452ba4a61a3487ca23.tar.gz
neutron: autogenerate docs
$namespace = openstack.network.v2 The subcommand documents for $namespace were hardcoded and thus prone to drift over time. This commit removes the hardcoded content and uses the autoprogram-cliff directive to generate them automatically from the subcommand configuration classes. This one turned out to be quite involved, because we support both neutron and nova-network. When running in a real cloud, the command classes detect whether the neutron service is present, assume nova-network if that service is not found, and only add parser options relevant to the detected service. But the docs need to present both sets of options. This was easy enough when they were hardcoded, but required a bit of additional infrastructure for generated docs. Change-Id: I426261eb1d86bcc68656aabd61f10b7f082da402
Diffstat (limited to 'doc/source/cli/command-objects/network-auto-allocated-topology.rst')
-rw-r--r--doc/source/cli/command-objects/network-auto-allocated-topology.rst59
1 files changed, 2 insertions, 57 deletions
diff --git a/doc/source/cli/command-objects/network-auto-allocated-topology.rst b/doc/source/cli/command-objects/network-auto-allocated-topology.rst
index 4ed68cda..00e4c6b9 100644
--- a/doc/source/cli/command-objects/network-auto-allocated-topology.rst
+++ b/doc/source/cli/command-objects/network-auto-allocated-topology.rst
@@ -10,60 +10,5 @@ http://docs.openstack.org/newton/networking-guide/config-auto-allocation.html
Network v2
-network auto allocated topology create
---------------------------------------
-
-Create the auto allocated topology for project
-
-.. program:: network auto allocated topology create
-.. code:: bash
-
- openstack network auto allocated topology create
- [--or-show]
- [--check-resources]
- [--project <project> [--project-domain <project-domain>]]
-
-.. option:: --or-show
-
- If topology exists returns the topologies information (Default).
-
-.. option:: --check-resources
-
- Validate the requirements for auto allocated topology.
- Does not return a topology.
-
-.. option:: --project <project>
-
- Return the auto allocated topology for a given project.
- Default is current project.
-
-.. option:: --project-domain <project-domain>
-
- Domain the project belongs to (name or ID).
- This can be used in case collisions between project names exist.
-
-.. _network_auto_allocated_topology_create:
-
-
-network auto allocated topology delete
---------------------------------------
-
-Delete auto allocated topology for project
-
-.. program:: network auto allocated topology delete
-.. code:: bash
-
- openstack network auto allocated topology delete
- [--project <project> [--project-domain <project-domain>]]
-
-.. option:: --project <project>
-
- Delete auto allocated topology for a given project.
- Default is the current project.
-
-.. option:: --project-domain <project-domain>
-
- Domain the project belongs to (name or ID).
- This can be used in case collisions between project names exist.
-
-.. _network_auto_allocated_topology_delete:
+.. autoprogram-cliff:: openstack.network.v2
+ :command: network auto allocated topology *