diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-13 18:14:30 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-13 18:14:30 -0700 |
commit | c11031f7de6382194ba2bbe560c8869a700489d7 (patch) | |
tree | 5abea530b2a887f23a5ec5e92908e12814b3f017 /templates/firewall/ipv6-name | |
parent | 190d4e8306669942d9ad48a0dc9229813e72c9a1 (diff) | |
download | vyatta-cfg-firewall-c11031f7de6382194ba2bbe560c8869a700489d7.tar.gz vyatta-cfg-firewall-c11031f7de6382194ba2bbe560c8869a700489d7.zip |
rectify regex check
Diffstat (limited to 'templates/firewall/ipv6-name')
-rw-r--r-- | templates/firewall/ipv6-name/node.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/firewall/ipv6-name/node.def b/templates/firewall/ipv6-name/node.def index d60808b..0d3fb79 100644 --- a/templates/firewall/ipv6-name/node.def +++ b/templates/firewall/ipv6-name/node.def @@ -12,7 +12,11 @@ syntax:expression: pattern $VAR(@) "^[^-]" ; "Firewall rule set name cannot star syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Firewall rule set name cannot contain ';'" -syntax:expression: pattern $VAR(@) "^[^VZONE]" ; "Firewall rule set name cannot start with \"VZONE\"" +syntax:expression: exec " + if echo '$VAR(@)' | grep -q '^VZONE'; then + echo Firewall rule set name cannot start with 'VZONE' + exit 1 + fi " end: if sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules ipv6-name "$VAR(@)" ; then |