Add restrictions for few UI settings

Change-Id: Iecf8fd6bfa0ec2c97c0bf7d1adeefc226456c201
This commit is contained in:
Igor Gajsin 2016-09-19 15:28:26 +03:00
parent 7075b77e7d
commit c81b89a589
1 changed files with 13 additions and 0 deletions

View File

@ -20,6 +20,9 @@ attributes:
restrictions:
- condition: "settings:fuel-plugin-manila.use-generic-driver.value != true"
action: hide
regex:
source: &non_empty_image_name '\S'
error: "Empty image name"
use-netapp-driver:
type: 'checkbox'
@ -47,6 +50,9 @@ attributes:
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
regex:
source: &non_empty_netapp_host '\S'
error: "Empty hostname of NetApp server"
netapp-port:
type: 'text'
@ -66,6 +72,10 @@ attributes:
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
regex:
source: &non_empty_netapp_user '\S'
error: "Empty username"
netapp-pass:
type: 'text'
weight: 35
@ -75,6 +85,9 @@ attributes:
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
regex:
source: &non_empty_netapp_pass '\S'
error: "Empty password"
netapp-root_volume_aggregate:
type: 'text'