Add widget for volume selection

Change-Id: Ife95142a46c3a35dcaee6f08207fca8490b9b005
Depends-On:Ic99443384180c8d0df33e2b7c15b8e56cd086da3
Implements: blueprint volume-selection-ui-element
This commit is contained in:
devray 2017-06-16 17:16:34 -04:00
parent 0bd0bd5a4b
commit b33cb51ea7

View File

@ -364,6 +364,8 @@ Currently supported options for **type** attribute are:
of the ones available to the current user
* *securitygroup* - specific field, used for selecting a custom security group
to assign to the instance
* *volume* - specific field, used for selecting a volume or a volume snapshot
from a list of available volumes (and volume snapshots)
* any other value is considered to be a fully qualified name for some
Application package and is rendered as a pair of controls: one for selecting
already existing Applications of that type in an Environment, second - for
@ -458,6 +460,7 @@ field attributes. The most common attributes are the following:
widget rendering. Note, that files should be placed to Django static folder
in advance. Mostly they are used to do some client-side field
enabling/disabling, hiding/unhiding etc.
* **requirements** is used only with flavor field and prevents user to pick
unstable for a deployment flavor.
It allows to set minimum ram (in MBs), disk space (in GBs) or virtual CPU
@ -476,6 +479,10 @@ field attributes. The most common attributes are the following:
min_vcpus: 2
min_memory_mb: 2048
* **include_snapshots** is used only with the volume field. ``True`` by default.
If ``True``, the field list includes available volumes and volume snapshots.
If set to ``False``, only available volumes are shown.
* **include_subnets** is used only with network field. ``True`` by default.
If ``True``, the field list includes all the possible combinations of network
and subnet. E.g. if there are two available networks X and Y, and X has two