diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-04-07 18:27:37 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-04-07 18:27:37 -0700 |
commit | d2e2b6bbec89e741b5e6c3e5c3129534170a2146 (patch) | |
tree | dda92c758a92230cbf9c39d73ebe11dab2591d62 /templates/zone-policy/zone/node.def | |
parent | 2dce0356cad163f17ca6c30b6f84727f2262e8e6 (diff) | |
download | vyatta-cfg-system-d2e2b6bbec89e741b5e6c3e5c3129534170a2146.tar.gz vyatta-cfg-system-d2e2b6bbec89e741b5e6c3e5c3129534170a2146.zip |
Add 1st pass of zone based firewall support (transit zones only for now)
Diffstat (limited to 'templates/zone-policy/zone/node.def')
-rw-r--r-- | templates/zone-policy/zone/node.def | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/zone-policy/zone/node.def b/templates/zone-policy/zone/node.def new file mode 100644 index 00000000..5fd8dc6e --- /dev/null +++ b/templates/zone-policy/zone/node.def @@ -0,0 +1,21 @@ +tag: +type: txt +help: Set zone name + +syntax:expression: exec " \ + if [ `echo -n '$VAR(@)' | wc -c` -gt 24 ]; then \ + echo Zone name must be 24 characters or less; \ + exit 1 ; \ + fi ; " + +syntax:expression: pattern $VAR(@) "^[^-]" ; "Zone name cannot start with \"-\"" + +syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Zone name cannot contain ';'" + +create: /opt/vyatta/sbin/vyatta-zone.pl \ + --action=add-zone \ + --zone-name="$VAR(@)" + +delete: /opt/vyatta/sbin/vyatta-zone.pl \ + --action=delete-zone \ + --zone-name="$VAR(@)" |