summaryrefslogtreecommitdiff
path: root/templates/zone-policy/zone/node.def
blob: 5fd8dc6e6ff66d08fe45b9f18335627e1f623195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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(@)"