From 13bf85da64924aee32dbc80db9287b4ea2386655 Mon Sep 17 00:00:00 2001 From: Igor Gajsin Date: Fri, 7 Oct 2016 14:24:27 +0300 Subject: [PATCH] add restrictions for NetApp driver on UI Closes-bug: #1625205 Change-Id: Id9b45dd234027d0a0992bb2f12e5596453e9f9a5 --- environment_config.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/environment_config.yaml b/environment_config.yaml index bf6e828..5909b4b 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -32,9 +32,16 @@ attributes: description: 'Use the NetApp onTap storage as a backend for manila shares' netapp-proto: - type: 'text' + type: 'radio' weight: 31 value: 'https' + values: + - data: 'https' + label: 'https' + description: 'Choose this protocol for encrypted connection' + - data: 'http' + label: 'http' + description: 'Choose this protocol for not encrypted connection' label: 'NetApp transport type' description: 'Transport protocol for communicating with the storage system' restrictions: @@ -62,6 +69,9 @@ attributes: restrictions: - condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true" action: hide + regex: + source: '^[0-9]*$' + error: "Network port should be a number" netapp-user: type: 'text'