summaryrefslogtreecommitdiff
path: root/templates/firewall/name/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/firewall/name/node.def')
-rw-r--r--templates/firewall/name/node.def6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/firewall/name/node.def b/templates/firewall/name/node.def
index 0c3c096..c48eb6d 100644
--- a/templates/firewall/name/node.def
+++ b/templates/firewall/name/node.def
@@ -18,8 +18,12 @@ end: if sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules "firewall name"
then
if sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown-ok "firewall name" ;
then
- sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown "firewall name"
+ if sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown "firewall name"; then
+ ${vyatta_sbindir}/vyatta-firewall-trap.pl --level="firewall name $VAR(@)"
+ fi
fi
+ else
+ ${vyatta_sbindir}/vyatta-firewall-trap.pl --level="firewall name $VAR(@)"
fi
else
exit 1;