add restrictions for NetApp driver on UI

Closes-bug: #1625205
Change-Id: Id9b45dd234027d0a0992bb2f12e5596453e9f9a5
This commit is contained in:
Igor Gajsin 2016-10-07 14:24:27 +03:00
parent 8038e59613
commit 13bf85da64

View File

@ -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'