diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-02-13 14:17:50 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-02-13 14:17:50 -0800 |
commit | 15ce1b5353d523103e39ba77fdd680f6c55a8c12 (patch) | |
tree | fb731da1a5711c16db91c04bffbcac3bde6148cb /templates | |
parent | 99970356468a928df7d115e4871bbe2a21b0c6a3 (diff) | |
download | vyatta-op-firewall-15ce1b5353d523103e39ba77fdd680f6c55a8c12.tar.gz vyatta-op-firewall-15ce1b5353d523103e39ba77fdd680f6c55a8c12.zip |
Add "show firewall group".
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/firewall/group/node.def | 2 | ||||
-rw-r--r-- | templates/show/firewall/group/node.tag/node.def | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/show/firewall/group/node.def b/templates/show/firewall/group/node.def new file mode 100644 index 0000000..bee6d42 --- /dev/null +++ b/templates/show/firewall/group/node.def @@ -0,0 +1,2 @@ +help: Show IPv4 firewall group + diff --git a/templates/show/firewall/group/node.tag/node.def b/templates/show/firewall/group/node.tag/node.def new file mode 100644 index 0000000..85ebdc0 --- /dev/null +++ b/templates/show/firewall/group/node.tag/node.def @@ -0,0 +1,7 @@ +help: Show IPv4 firewall group + +allowed: local -a array + array=( /opt/vyatta/config/active/firewall/group/*/* ) + echo -n ${array[@]##*/} + +run: sudo /opt/vyatta/sbin/vyatta-ipset.pl --action=show-set-members --set-name="$4" |