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