Fix regexes to match correct values

Change-Id: I6a1c032a0d02a01cab041abad3f8ed14aa01beaa
Signed-off-by: Illia Polliul <ipolliul@mirantis.com>
This commit is contained in:
Illia Polliul 2016-06-07 20:59:38 +03:00
parent 114536ef2e
commit 580d170ee2
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ attributes:
weight: 20
type: "text"
regex:
source: '^(?:(6553[0-5])|(655[0-2]\d)|(65[0-4]\d{2})|(6[0-4]\d{3})|([1-5]\d{4})|([1-9]\d{1,3})|([1-9]))$'
source: '^(?:(6553[0-4])|(655[0-2]\d)|(65[0-4]\d{2})|(6[0-4]\d{3})|([1-5]\d{4})|([1-9][0-9]{0,2}))$'
error: "Invalid AS number"
contrail_gateways:
value: '10.109.4.250'
@ -38,7 +38,7 @@ attributes:
weight: 60
type: "text"
regex:
source: '^(429496729[0-6]|42949672[0-8]\d|4294967[01]\d{2}|429496[0-6]\d{3}|42949[0-5]\d{4}|4294[0-8]\d{5}|429[0-3]\d{6}|42[0-8]\d{7}|4[01]\d{8}|[1-3]\d{9}|[1-9]\d{8}|[1-9]\d{7}|[1-9]\d{6}|[1-9]\d{5}|[1-9]\d{4}|[1-9]\d{3}|[1-9]\d{2}|[1-9]\d|\d)$'
source: '^(429496729[0-5]|42949672[0-8]\d|4294967[01]\d{2}|429496[0-6]\d{3}|42949[0-5]\d{4}|4294[0-8]\d{5}|429[0-3]\d{6}|42[0-8]\d{7}|4[01]\d{8}|[1-3]\d{9}|[1-9][0-9]{0,7})$'
error: "Invalid target"
contrail_api_public_port:
value: "8082"