Docs:Correct the CLI in the completed spec
Change-Id: I058b2afb13c06eeb4acdc50fc5eafbac3964abe9
This commit is contained in:
parent
8034f0d878
commit
6d01907082
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
http://creativecommons.org/licenses/by/3.0/legalcode
|
http://creativecommons.org/licenses/by/3.0/legalcode
|
||||||
|
|
||||||
============================================================
|
=========================================
|
||||||
Generalized filtered listing on resources
|
Generalized filtered listing on resources
|
||||||
============================================================
|
=========================================
|
||||||
|
|
||||||
https://blueprints.launchpad.net/cinder/+spec/generalized-filtering-for-cinder-list-resource
|
https://blueprints.launchpad.net/cinder/+spec/generalized-filtering-for-cinder-list-resource
|
||||||
|
|
||||||
@ -77,18 +77,18 @@ Alternatives
|
|||||||
* We could provide a generalized "filters" (pick a better name) controller
|
* We could provide a generalized "filters" (pick a better name) controller
|
||||||
that could be called directly and then call the specified resource item
|
that could be called directly and then call the specified resource item
|
||||||
with filters. This would mean you would do things like:
|
with filters. This would mean you would do things like:
|
||||||
`cinder filters-list --resource volume` to get a list of valid filter
|
`cinder list-filters --resource volume` to get a list of valid filter
|
||||||
items for a volume (volumes should be the default).
|
items for a volume (volumes should be the default).
|
||||||
|
|
||||||
`cinder filters-list --resource snapshot` for snapshots, etc.
|
`cinder list-filters --resource snapshot` for snapshots, etc.
|
||||||
|
|
||||||
But then have something like a `cinder filtered-list --filter xyz=abc`
|
But then have something like a `cinder [<resource>-]list --filters xyz=abc`
|
||||||
which would go to a filtered-list controller and then call the resource
|
which would go to a resource list controller and then call the resource
|
||||||
controller appropriately.
|
controller appropriately.
|
||||||
|
|
||||||
This might be a good way to reduce some duplicate code and churn even further
|
This might be a good way to reduce some duplicate code and churn even further
|
||||||
but it may require just as much work and code as just having each resource
|
but it may require just as much work and code as just having each resource
|
||||||
have it's own "--filter" options to the list commands.
|
have it's own "--filters" options to the list commands.
|
||||||
|
|
||||||
Data model impact
|
Data model impact
|
||||||
-----------------
|
-----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user