From fa38551031d0a0e37663fe465b3847f652b2c5a4 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Mon, 29 Nov 2010 15:57:22 -0800 Subject: Fix 5163: 'show firewall' displays misleading output when firewall groups are used Replace "show firewall" with "show firewall detail" output. --- templates/show/firewall/detail/node.def | 2 -- templates/show/firewall/ipv6-modify/detail/node.def | 2 -- templates/show/firewall/ipv6-modify/node.def | 2 +- templates/show/firewall/ipv6-modify/node.tag/detail/node.def | 3 --- templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.def | 1 - .../firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def | 8 -------- templates/show/firewall/ipv6-modify/node.tag/node.def | 2 +- .../show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def | 2 +- templates/show/firewall/ipv6-name/detail/node.def | 2 -- templates/show/firewall/ipv6-name/node.def | 2 +- templates/show/firewall/ipv6-name/node.tag/detail/node.def | 3 --- templates/show/firewall/ipv6-name/node.tag/detail/rule/node.def | 1 - .../firewall/ipv6-name/node.tag/detail/rule/node.tag/node.def | 8 -------- templates/show/firewall/ipv6-name/node.tag/node.def | 2 +- templates/show/firewall/ipv6-name/node.tag/rule/node.tag/node.def | 2 +- templates/show/firewall/modify/detail/node.def | 2 -- templates/show/firewall/modify/node.def | 2 +- templates/show/firewall/modify/node.tag/detail/node.def | 3 --- templates/show/firewall/modify/node.tag/detail/rule/node.def | 1 - .../show/firewall/modify/node.tag/detail/rule/node.tag/node.def | 8 -------- templates/show/firewall/modify/node.tag/node.def | 2 +- templates/show/firewall/modify/node.tag/rule/node.tag/node.def | 2 +- templates/show/firewall/name/detail/node.def | 2 -- templates/show/firewall/name/node.def | 2 +- templates/show/firewall/name/node.tag/detail/node.def | 3 --- templates/show/firewall/name/node.tag/detail/rule/node.def | 1 - .../show/firewall/name/node.tag/detail/rule/node.tag/node.def | 8 -------- templates/show/firewall/name/node.tag/node.def | 2 +- templates/show/firewall/name/node.tag/rule/node.tag/node.def | 2 +- templates/show/firewall/node.def | 3 +-- 30 files changed, 13 insertions(+), 72 deletions(-) delete mode 100644 templates/show/firewall/detail/node.def delete mode 100644 templates/show/firewall/ipv6-modify/detail/node.def delete mode 100644 templates/show/firewall/ipv6-modify/node.tag/detail/node.def delete mode 100644 templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.def delete mode 100644 templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def delete mode 100644 templates/show/firewall/ipv6-name/detail/node.def delete mode 100644 templates/show/firewall/ipv6-name/node.tag/detail/node.def delete mode 100644 templates/show/firewall/ipv6-name/node.tag/detail/rule/node.def delete mode 100644 templates/show/firewall/ipv6-name/node.tag/detail/rule/node.tag/node.def delete mode 100644 templates/show/firewall/modify/detail/node.def delete mode 100644 templates/show/firewall/modify/node.tag/detail/node.def delete mode 100644 templates/show/firewall/modify/node.tag/detail/rule/node.def delete mode 100644 templates/show/firewall/modify/node.tag/detail/rule/node.tag/node.def delete mode 100644 templates/show/firewall/name/detail/node.def delete mode 100644 templates/show/firewall/name/node.tag/detail/node.def delete mode 100644 templates/show/firewall/name/node.tag/detail/rule/node.def delete mode 100644 templates/show/firewall/name/node.tag/detail/rule/node.tag/node.def (limited to 'templates') diff --git a/templates/show/firewall/detail/node.def b/templates/show/firewall/detail/node.def deleted file mode 100644 index 97b88db..0000000 --- a/templates/show/firewall/detail/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show detailed firewall information -run: ${vyatta_bindir}/vyatta-show-firewall.pl "all_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-modify/detail/node.def b/templates/show/firewall/ipv6-modify/detail/node.def deleted file mode 100644 index 5fb43bc..0000000 --- a/templates/show/firewall/ipv6-modify/detail/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show detailed firewall information -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-modify/node.def b/templates/show/firewall/ipv6-modify/node.def index 124ca92..4aee1ea 100644 --- a/templates/show/firewall/ipv6-modify/node.def +++ b/templates/show/firewall/ipv6-modify/node.def @@ -1,2 +1,2 @@ help: Show IPv6 firewall modify chains -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-modify/node.tag/detail/node.def b/templates/show/firewall/ipv6-modify/node.tag/detail/node.def deleted file mode 100644 index 01c34a1..0000000 --- a/templates/show/firewall/ipv6-modify/node.tag/detail/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show detailed IPv6 firewall modify rules information - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.def b/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.def deleted file mode 100644 index a4f9757..0000000 --- a/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show detailed IPv6 firewall modify rules information diff --git a/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def b/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def deleted file mode 100644 index 9fcb7a1..0000000 --- a/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Show detailed information for specified IPv6 firewall modify rule - -allowed: local -a vals - eval "vals=($(cli-shell-api listActiveNodes \ - firewall ipv6-modify ${COMP_WORDS[COMP_CWORD-3]} rule))" - echo -n ${vals[@]} - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$7" diff --git a/templates/show/firewall/ipv6-modify/node.tag/node.def b/templates/show/firewall/ipv6-modify/node.tag/node.def index d184b97..60f872b 100644 --- a/templates/show/firewall/ipv6-modify/node.tag/node.def +++ b/templates/show/firewall/ipv6-modify/node.tag/node.def @@ -4,4 +4,4 @@ allowed: local -a vals eval "vals=($(cli-shell-api listActiveNodes firewall ipv6-modify))" echo -n ${vals[@]} -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def b/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def index d0aa3db..fa7b4cb 100644 --- a/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def +++ b/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def @@ -5,4 +5,4 @@ allowed: local -a vals firewall ipv6-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.xsl "$6" +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$6" diff --git a/templates/show/firewall/ipv6-name/detail/node.def b/templates/show/firewall/ipv6-name/detail/node.def deleted file mode 100644 index 5fb43bc..0000000 --- a/templates/show/firewall/ipv6-name/detail/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show detailed firewall information -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-name/node.def b/templates/show/firewall/ipv6-name/node.def index b14bdec..ffd322d 100644 --- a/templates/show/firewall/ipv6-name/node.def +++ b/templates/show/firewall/ipv6-name/node.def @@ -1,2 +1,2 @@ help: Show IPv6 firewall chains -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-name/node.tag/detail/node.def b/templates/show/firewall/ipv6-name/node.tag/detail/node.def deleted file mode 100644 index 6ef355e..0000000 --- a/templates/show/firewall/ipv6-name/node.tag/detail/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show detailed IPv6 firewall rules information - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-name/node.tag/detail/rule/node.def b/templates/show/firewall/ipv6-name/node.tag/detail/rule/node.def deleted file mode 100644 index 345643e..0000000 --- a/templates/show/firewall/ipv6-name/node.tag/detail/rule/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show detailed IPv6 firewall rules information diff --git a/templates/show/firewall/ipv6-name/node.tag/detail/rule/node.tag/node.def b/templates/show/firewall/ipv6-name/node.tag/detail/rule/node.tag/node.def deleted file mode 100644 index c231a40..0000000 --- a/templates/show/firewall/ipv6-name/node.tag/detail/rule/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Show detailed information for specified IPv6 firewall rule - -allowed: local -a vals - eval "vals=($(cli-shell-api listActiveNodes \ - firewall ipv6-name ${COMP_WORDS[COMP_CWORD-3]} rule))" - echo -n ${vals[@]} - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$7" diff --git a/templates/show/firewall/ipv6-name/node.tag/node.def b/templates/show/firewall/ipv6-name/node.tag/node.def index 50597fa..d29ceed 100644 --- a/templates/show/firewall/ipv6-name/node.tag/node.def +++ b/templates/show/firewall/ipv6-name/node.tag/node.def @@ -4,4 +4,4 @@ allowed: local -a vals eval "vals=($(cli-shell-api listActiveNodes firewall ipv6-name))" echo -n ${vals[@]} -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/ipv6-name/node.tag/rule/node.tag/node.def b/templates/show/firewall/ipv6-name/node.tag/rule/node.tag/node.def index ee73ee7..512f038 100644 --- a/templates/show/firewall/ipv6-name/node.tag/rule/node.tag/node.def +++ b/templates/show/firewall/ipv6-name/node.tag/rule/node.tag/node.def @@ -5,4 +5,4 @@ allowed: local -a vals firewall ipv6-name ${COMP_WORDS[COMP_CWORD-2]} rule))" echo -n ${vals[@]} -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl "$6" +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$6" diff --git a/templates/show/firewall/modify/detail/node.def b/templates/show/firewall/modify/detail/node.def deleted file mode 100644 index 5fb43bc..0000000 --- a/templates/show/firewall/modify/detail/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show detailed firewall information -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/modify/node.def b/templates/show/firewall/modify/node.def index cbd2fc6..8a16e04 100644 --- a/templates/show/firewall/modify/node.def +++ b/templates/show/firewall/modify/node.def @@ -1,2 +1,2 @@ help: Show IPv4 firewall modify chains -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/modify/node.tag/detail/node.def b/templates/show/firewall/modify/node.tag/detail/node.def deleted file mode 100644 index 3e11efe..0000000 --- a/templates/show/firewall/modify/node.tag/detail/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show detailed IPv4 firewall modify rules information - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/modify/node.tag/detail/rule/node.def b/templates/show/firewall/modify/node.tag/detail/rule/node.def deleted file mode 100644 index b67d3eb..0000000 --- a/templates/show/firewall/modify/node.tag/detail/rule/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show detailed IPv4 firewall modify rules information diff --git a/templates/show/firewall/modify/node.tag/detail/rule/node.tag/node.def b/templates/show/firewall/modify/node.tag/detail/rule/node.tag/node.def deleted file mode 100644 index c69f5ac..0000000 --- a/templates/show/firewall/modify/node.tag/detail/rule/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Show detailed information for specified IPv4 firewall modify rule - -allowed: local -a vals - eval "vals=($(cli-shell-api listActiveNodes \ - firewall modify ${COMP_WORDS[COMP_CWORD-3]} rule))" - echo -n ${vals[@]} - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$7" diff --git a/templates/show/firewall/modify/node.tag/node.def b/templates/show/firewall/modify/node.tag/node.def index bdae565..096bac0 100644 --- a/templates/show/firewall/modify/node.tag/node.def +++ b/templates/show/firewall/modify/node.tag/node.def @@ -4,4 +4,4 @@ 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.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/modify/node.tag/rule/node.tag/node.def b/templates/show/firewall/modify/node.tag/rule/node.tag/node.def index d6cae43..e79461e 100644 --- a/templates/show/firewall/modify/node.tag/rule/node.tag/node.def +++ b/templates/show/firewall/modify/node.tag/rule/node.tag/node.def @@ -5,4 +5,4 @@ allowed: local -a vals 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.xsl "$6" +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$6" diff --git a/templates/show/firewall/name/detail/node.def b/templates/show/firewall/name/detail/node.def deleted file mode 100644 index 5fb43bc..0000000 --- a/templates/show/firewall/name/detail/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show detailed firewall information -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/name/node.def b/templates/show/firewall/name/node.def index f164f73..304d983 100644 --- a/templates/show/firewall/name/node.def +++ b/templates/show/firewall/name/node.def @@ -1,2 +1,2 @@ help: Show IPv4 firewall chains -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/name/node.tag/detail/node.def b/templates/show/firewall/name/node.tag/detail/node.def deleted file mode 100644 index 0af8d69..0000000 --- a/templates/show/firewall/name/node.tag/detail/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show detailed IPv4 firewall rules information - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/name/node.tag/detail/rule/node.def b/templates/show/firewall/name/node.tag/detail/rule/node.def deleted file mode 100644 index 13fe7fc..0000000 --- a/templates/show/firewall/name/node.tag/detail/rule/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show detailed IPv4 firewall rules information diff --git a/templates/show/firewall/name/node.tag/detail/rule/node.tag/node.def b/templates/show/firewall/name/node.tag/detail/rule/node.tag/node.def deleted file mode 100644 index 55ae0d6..0000000 --- a/templates/show/firewall/name/node.tag/detail/rule/node.tag/node.def +++ /dev/null @@ -1,8 +0,0 @@ -help: Show detailed information for specified IPv4 firewall rule - -allowed: local -a vals - eval "vals=($(cli-shell-api listActiveNodes \ - firewall name ${COMP_WORDS[COMP_CWORD-3]} rule))" - echo -n ${vals[@]} - -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$7" diff --git a/templates/show/firewall/name/node.tag/node.def b/templates/show/firewall/name/node.tag/node.def index 09ac2e2..8be5f15 100644 --- a/templates/show/firewall/name/node.tag/node.def +++ b/templates/show/firewall/name/node.tag/node.def @@ -4,4 +4,4 @@ allowed: local -a vals eval "vals=($(cli-shell-api listActiveNodes firewall name))" echo -n ${vals[@]} -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl diff --git a/templates/show/firewall/name/node.tag/rule/node.tag/node.def b/templates/show/firewall/name/node.tag/rule/node.tag/node.def index 9e00b38..6670530 100644 --- a/templates/show/firewall/name/node.tag/rule/node.tag/node.def +++ b/templates/show/firewall/name/node.tag/rule/node.tag/node.def @@ -5,4 +5,4 @@ allowed: local -a vals firewall name ${COMP_WORDS[COMP_CWORD-2]} rule))" echo -n ${vals[@]} -run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl "$6" +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$6" diff --git a/templates/show/firewall/node.def b/templates/show/firewall/node.def index e179c45..e09a6c2 100644 --- a/templates/show/firewall/node.def +++ b/templates/show/firewall/node.def @@ -1,3 +1,2 @@ help: Show firewall information -run: ${vyatta_bindir}/vyatta-show-firewall.pl "all_all" /opt/vyatta/share/xsl/show_firewall.xsl - +run: ${vyatta_bindir}/vyatta-show-firewall.pl "all_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl -- cgit v1.2.3