Add check to endpoint syntax

Change-Id: I625c2d1000b7834b34736f316f486a0650c66cc9
Closes-Bug: 1397000
This commit is contained in:
Stanislaw Bogatkin 2015-02-18 19:32:15 +03:00
parent 051f3fb20c
commit 4784388e02
2 changed files with 7 additions and 0 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=stackforge/fuel-plugin-external-glusterfs.git

View File

@ -5,3 +5,6 @@ attributes:
description: 'IP address of GlusterFS endpoint'
weight: 25
type: "text"
regex:
source: '^([a-zA-Z0-9]+[-\.])*[a-zA-Z0-9]+\:(([1-9][0-9]{0,3}|[1-6][0-5][0-5][0-3][0-5])\:){0,1}\/(\.{3,}[a-zA-Z0-9-_\.]*|\.{0,2}[a-zA-Z0-9-_]+[a-zA-Z0-9-_\.]*)$'
error: "Invalid address"