
$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
25 lines
623 B
ReStructuredText
25 lines
623 B
ReStructuredText
=============
|
|
network meter
|
|
=============
|
|
|
|
A **network meter** allows operators to measure
|
|
traffic for a specific IP range. The following commands
|
|
are specific to the L3 metering extension.
|
|
|
|
Network v2
|
|
|
|
.. NOTE(efried): have to list these out one by one; 'network meter *' pulls in
|
|
... rule *.
|
|
|
|
.. autoprogram-cliff:: openstack.network.v2
|
|
:command: network meter create
|
|
|
|
.. autoprogram-cliff:: openstack.network.v2
|
|
:command: network meter delete
|
|
|
|
.. autoprogram-cliff:: openstack.network.v2
|
|
:command: network meter list
|
|
|
|
.. autoprogram-cliff:: openstack.network.v2
|
|
:command: network meter show
|