diff options
author | James Davidson <james.davidson@vyatta.com> | 2013-05-21 17:57:25 -0700 |
---|---|---|
committer | James Davidson <james.davidson@vyatta.com> | 2013-05-22 16:47:05 -0700 |
commit | 9339770e2f8a874c4f9befa05613c842f2b9b3a9 (patch) | |
tree | d9680ebc8316ed6e714b3997a83a8d0364739105 /templates/firewall/group/port-group | |
parent | ebd75fd25ddede4a6797ebe5a9f4c0195d1dce17 (diff) | |
download | vyatta-cfg-firewall-9339770e2f8a874c4f9befa05613c842f2b9b3a9.tar.gz vyatta-cfg-firewall-9339770e2f8a874c4f9befa05613c842f2b9b3a9.zip |
Enable generation of SNMP traps on firewall config changes
Adds call to vyatta-firewall-trap.pl to end action of firewall
nodes.
Diffstat (limited to 'templates/firewall/group/port-group')
-rw-r--r-- | templates/firewall/group/port-group/node.def | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/firewall/group/port-group/node.def b/templates/firewall/group/port-group/node.def index 949403e..1484be2 100644 --- a/templates/firewall/group/port-group/node.def +++ b/templates/firewall/group/port-group/node.def @@ -15,5 +15,7 @@ syntax:expression: pattern $VAR(@) "^[^!]" ; \ syntax:expression: pattern $VAR(@) "^[^|;&$<>]*$" ; \ "Firewall group name cannot contain shell punctuation" -end: sudo /opt/vyatta/sbin/vyatta-ipset.pl --action=update-set \ - --set-name="$VAR(@)" --set-type=port +end: if sudo /opt/vyatta/sbin/vyatta-ipset.pl --action=update-set \ + --set-name="$VAR(@)" --set-type=port; then + ${vyatta_sbindir}/vyatta-firewall-trap.pl --level="firewall group port-group $VAR(@)" + fi |