mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 15:31:03 +00:00
$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
14 lines
469 B
ReStructuredText
14 lines
469 B
ReStructuredText
=====================
|
|
network segment range
|
|
=====================
|
|
|
|
A **network segment range** is a resource for tenant network segment
|
|
allocation.
|
|
A network segment range exposes the segment range management to be administered
|
|
via the Neutron API. In addition, it introduces the ability for the
|
|
administrator to control the segment ranges globally or on a per-tenant basis.
|
|
|
|
Network v2
|
|
|
|
.. autoprogram-cliff:: openstack.network.v2
|
|
:command: network segment range *
|