<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">tag:
type: txt
help: Set 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
</pre></body></html>