added restrictions in UI fields
Change-Id: Iaef548a06c264ec8b5a83a20693e6dae1d653148
This commit is contained in:
parent
f41d7b8e51
commit
d2c00bb0e6
@ -60,8 +60,6 @@ class scaleio_fuel::params
|
||||
|
||||
notice("sio_sds_device: ${sio_sds_device}")
|
||||
|
||||
|
||||
|
||||
#TODO: Get callhome information from UI
|
||||
$callhome_cfg = {
|
||||
'email_to' => "emailto@address.com",
|
||||
|
@ -43,6 +43,9 @@ attributes:
|
||||
label: "ScaleIO protection domain"
|
||||
description: "Protection domain for ScaleIO"
|
||||
weight: 45
|
||||
regex:
|
||||
source: '\S'
|
||||
error: "Protection Domain cannot be empty"
|
||||
|
||||
storage_pool:
|
||||
type: "text"
|
||||
@ -50,6 +53,9 @@ attributes:
|
||||
label: "ScaleIO storage pool"
|
||||
description: "First storage pool for ScaleIO"
|
||||
weight: 50
|
||||
regex:
|
||||
source: '\S'
|
||||
error: "Storage Pool cannot be empty"
|
||||
|
||||
pool_size:
|
||||
type: "text"
|
||||
@ -57,6 +63,6 @@ attributes:
|
||||
label: "Storage pool size"
|
||||
description: "Size of the Storage Pool."
|
||||
weight: 55
|
||||
# regex:
|
||||
# source: '(?<sizevalue>\p{N}+)(?:\s*)(?<sizetype>(?:MB|KB|GB|B)\b)'
|
||||
# error: 'You must provide a valid size unit (B, KB, MB, GB). E.g.: 100GB'
|
||||
regex:
|
||||
source: '(?<sizevalue>\p{N}+)(?:\s*)(?<sizetype>(?:MB|KB|GB|B)\b)'
|
||||
error: 'You must provide a valid size unit (B, KB, MB, GB). E.g.: 100GB'
|
||||
|
Loading…
Reference in New Issue
Block a user