summaryrefslogtreecommitdiff
path: root/templates/zone-policy/zone/node.def
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2010-10-07 19:15:33 -0700
committerMohit Mehta <mohit@vyatta.com>2010-10-07 19:15:33 -0700
commit2e0e6f99d687c370487570515c29a220262ba598 (patch)
treea22d09237777183f9c3bd107b5b7ef8c43dc809e /templates/zone-policy/zone/node.def
parentcbc9578ade6afaf6db039401182b6cfe14e73ff9 (diff)
downloadvyatta-cfg-system-2e0e6f99d687c370487570515c29a220262ba598.tar.gz
vyatta-cfg-system-2e0e6f99d687c370487570515c29a220262ba598.zip
moved code for zones to vyatta-zone package
Diffstat (limited to 'templates/zone-policy/zone/node.def')
-rw-r--r--templates/zone-policy/zone/node.def24
1 files changed, 0 insertions, 24 deletions
diff --git a/templates/zone-policy/zone/node.def b/templates/zone-policy/zone/node.def
deleted file mode 100644
index eb8c3c87..00000000
--- a/templates/zone-policy/zone/node.def
+++ /dev/null
@@ -1,24 +0,0 @@
-tag:
-type: txt
-help: Zone name
-
-syntax:expression: pattern $VAR(@) "^[[:print:]]{1,20}$" ;
- "Zone name must be 20 characters or less"
-
-syntax:expression: pattern $VAR(@) "^[^-]" ; "Zone name cannot start with \"-\""
-
-syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Zone name cannot contain ';'"
-
-create:
- if ! /opt/vyatta/sbin/vyatta-zone.pl \
- --action=add-zone \
- --zone-name="$VAR(@)"; then
- exit 1
- fi
-
-delete:
- if ! /opt/vyatta/sbin/vyatta-zone.pl \
- --action=delete-zone \
- --zone-name="$VAR(@)"; then
- exit 1
- fi