diff options
author | Robert Bays <robert@vyatta.com> | 2012-09-05 10:57:02 -0700 |
---|---|---|
committer | Robert Bays <robert@vyatta.com> | 2012-09-05 10:57:02 -0700 |
commit | a9d4ab9d4806e0b8a0d151442bcffd4f63f65dda (patch) | |
tree | 33f6f85bd8575b5ffb4548a1b1e1a72772f344f8 /templates/show/policy/route | |
parent | e5ba41191e5be53ca366f3a880ed19269f23ea3f (diff) | |
download | vyatta-op-firewall-a9d4ab9d4806e0b8a0d151442bcffd4f63f65dda.tar.gz vyatta-op-firewall-a9d4ab9d4806e0b8a0d151442bcffd4f63f65dda.zip |
add show command support for policy rules
Diffstat (limited to 'templates/show/policy/route')
6 files changed, 22 insertions, 0 deletions
diff --git a/templates/show/policy/route/node.def b/templates/show/policy/route/node.def new file mode 100644 index 0000000..8a16e04 --- /dev/null +++ b/templates/show/policy/route/node.def @@ -0,0 +1,2 @@ +help: Show IPv4 firewall modify chains +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/policy/route/node.tag/node.def b/templates/show/policy/route/node.tag/node.def new file mode 100644 index 0000000..096bac0 --- /dev/null +++ b/templates/show/policy/route/node.tag/node.def @@ -0,0 +1,7 @@ +help: Show rules for given IPv4 firewall modify chain + +allowed: local -a vals + eval "vals=($(cli-shell-api listActiveNodes firewall modify))" + echo -n ${vals[@]} + +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/policy/route/node.tag/rule/node.def b/templates/show/policy/route/node.tag/rule/node.def new file mode 100644 index 0000000..44a9e1a --- /dev/null +++ b/templates/show/policy/route/node.tag/rule/node.def @@ -0,0 +1 @@ +help: Show summary of IPv4 firewall modify rules diff --git a/templates/show/policy/route/node.tag/rule/node.tag/node.def b/templates/show/policy/route/node.tag/rule/node.tag/node.def new file mode 100644 index 0000000..e79461e --- /dev/null +++ b/templates/show/policy/route/node.tag/rule/node.tag/node.def @@ -0,0 +1,8 @@ +help: Show summary of IPv4 firewall modify rules + +allowed: local -a vals + eval "vals=($(cli-shell-api listActiveNodes \ + firewall modify ${COMP_WORDS[COMP_CWORD-2]} rule))" + echo -n ${vals[@]} + +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$6" diff --git a/templates/show/policy/route/node.tag/statistics/node.def b/templates/show/policy/route/node.tag/statistics/node.def new file mode 100644 index 0000000..a96479b --- /dev/null +++ b/templates/show/policy/route/node.tag/statistics/node.def @@ -0,0 +1,2 @@ +help: Show IPv4 firewall modify counter information +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_statistics.xsl diff --git a/templates/show/policy/route/statistics/node.def b/templates/show/policy/route/statistics/node.def new file mode 100644 index 0000000..ae89dec --- /dev/null +++ b/templates/show/policy/route/statistics/node.def @@ -0,0 +1,2 @@ +help: Show firewall counter information +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_statistics.xsl |