From 4784388e022ae62c50df6cdac8b3c449949e6e0e Mon Sep 17 00:00:00 2001 From: Stanislaw Bogatkin Date: Wed, 18 Feb 2015 19:32:15 +0300 Subject: [PATCH] Add check to endpoint syntax Change-Id: I625c2d1000b7834b34736f316f486a0650c66cc9 Closes-Bug: 1397000 --- .gitreview | 4 ++++ environment_config.yaml | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 .gitreview diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..4ca2aae --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=stackforge/fuel-plugin-external-glusterfs.git diff --git a/environment_config.yaml b/environment_config.yaml index eabca08..449be8d 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -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"