From b33cb51ea7aaf62836029fe2ea156f7aa062d090 Mon Sep 17 00:00:00 2001 From: devray Date: Fri, 16 Jun 2017 17:16:34 -0400 Subject: [PATCH] Add widget for volume selection Change-Id: Ife95142a46c3a35dcaee6f08207fca8490b9b005 Depends-On:Ic99443384180c8d0df33e2b7c15b8e56cd086da3 Implements: blueprint volume-selection-ui-element --- doc/source/appdev-guide/muranopackages/dynamic_ui.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/source/appdev-guide/muranopackages/dynamic_ui.rst b/doc/source/appdev-guide/muranopackages/dynamic_ui.rst index 0bb5f078..02810121 100644 --- a/doc/source/appdev-guide/muranopackages/dynamic_ui.rst +++ b/doc/source/appdev-guide/muranopackages/dynamic_ui.rst @@ -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