diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-06 16:47:28 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-06 16:47:28 -0700 |
commit | 58a5f4da6bf1772a2d20a6ae202fc6611eb4bbfc (patch) | |
tree | 960701619046af60f52581eaf26f372535a4151f /templates/zone-policy/zone | |
parent | 286c4cad8406c3b1e4686f980309034b6b5d2dc7 (diff) | |
download | vyatta-cfg-system-58a5f4da6bf1772a2d20a6ae202fc6611eb4bbfc.tar.gz vyatta-cfg-system-58a5f4da6bf1772a2d20a6ae202fc6611eb4bbfc.zip |
* do silent validity check when creating zone chains and adding from zone rules
Diffstat (limited to 'templates/zone-policy/zone')
-rw-r--r-- | templates/zone-policy/zone/node.tag/from/node.def | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/zone-policy/zone/node.tag/from/node.def b/templates/zone-policy/zone/node.tag/from/node.def index 5273519a..5e37f9f1 100644 --- a/templates/zone-policy/zone/node.tag/from/node.def +++ b/templates/zone-policy/zone/node.tag/from/node.def @@ -7,6 +7,11 @@ allowed: zones=( /opt/vyatta/config/active/zone-policy/zone/* ) echo -n ${zones[@]##*/} +begin: +if ! /opt/vyatta/sbin/vyatta-zone.pl --action=validity-checks --zone-name=none --silent-validate=true; then + exit 1 +fi + create: parent_zone=$VAR(../@) zones=($VAR(../@@)) |