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