diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-04-08 15:34:49 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2009-04-08 15:34:49 -0700 |
commit | c5943c3924d18842f391b08cbfe5e7035aad4357 (patch) | |
tree | 5b18f21b80996b08305365f85bd20e6610223684 /templates/zone-policy/zone/node.def | |
parent | 3f6410042b54db636eac390657a8a35583515ce4 (diff) | |
parent | d2e2b6bbec89e741b5e6c3e5c3129534170a2146 (diff) | |
download | vyatta-cfg-quagga-c5943c3924d18842f391b08cbfe5e7035aad4357.tar.gz vyatta-cfg-quagga-c5943c3924d18842f391b08cbfe5e7035aad4357.zip |
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg-system into jenner
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(@)" |