summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@sydney.vyatta.com>2007-12-17 14:49:25 -0800
committerBob Gilligan <gilligan@sydney.vyatta.com>2007-12-17 14:49:25 -0800
commit57aedd6c182e619856d6f5b2b9387407bb1abdce (patch)
treea350eff02fb91925dbd35cb4cd275c3640ecca21
parent543de3ad1e144d0ab8f31a47bee8b21bb1fae264 (diff)
downloadvyatta-op-firewall-57aedd6c182e619856d6f5b2b9387407bb1abdce.tar.gz
vyatta-op-firewall-57aedd6c182e619856d6f5b2b9387407bb1abdce.zip
Fixed several firewall show command templates files>
-rwxr-xr-xscripts/firewall/vyatta-show-firewall.pl4
-rw-r--r--templates/show/firewall/node.def2
-rw-r--r--templates/show/firewall/node.tag/detail/node.def2
-rw-r--r--templates/show/firewall/node.tag/detail/rule/node.def2
-rw-r--r--templates/show/firewall/node.tag/detail/rule/node.tag/node.def5
-rw-r--r--templates/show/firewall/node.tag/node.def5
-rw-r--r--templates/show/firewall/node.tag/rule/node.def1
-rw-r--r--templates/show/firewall/node.tag/rule/node.tag/node.def3
-rw-r--r--templates/show/firewall/node.tag/statistics/node.def2
9 files changed, 16 insertions, 10 deletions
diff --git a/scripts/firewall/vyatta-show-firewall.pl b/scripts/firewall/vyatta-show-firewall.pl
index 241a03a..be9e60d 100755
--- a/scripts/firewall/vyatta-show-firewall.pl
+++ b/scripts/firewall/vyatta-show-firewall.pl
@@ -75,13 +75,13 @@ if ($chain_name eq "-all") {
my @chains = $config->listOrigNodes();
foreach (@chains) {
print "Firewall \"$_\":\n";
- open(RENDER, "| /opt/vyatta/libexec/xorp/render_xml $xsl_file") or exit 1;
+ open(RENDER, "| /opt/vyatta/sbin/render_xml $xsl_file") or exit 1;
show_chain($_, *RENDER{IO});
close RENDER;
print "-" x 80 . "\n";
}
} else {
- open(RENDER, "| /opt/vyatta/libexec/xorp/render_xml $xsl_file") or exit 1;
+ open(RENDER, "| /opt/vyatta/sbin/render_xml $xsl_file") or exit 1;
show_chain($chain_name, *RENDER{IO});
close RENDER;
}
diff --git a/templates/show/firewall/node.def b/templates/show/firewall/node.def
index 84d9b08..a56e847 100644
--- a/templates/show/firewall/node.def
+++ b/templates/show/firewall/node.def
@@ -1,3 +1,3 @@
help: Show firewall information
-run: ${vyatta_sbindir}/vyatta-show-firewall.pl --all /opt/vyatta/xsl/show_firewall.xsl
+run: ${vyatta_sbindir}/vyatta-show-firewall.pl -all /opt/vyatta/share/xsl/show_firewall.xsl
diff --git a/templates/show/firewall/node.tag/detail/node.def b/templates/show/firewall/node.tag/detail/node.def
index bb41ddb..2812bcd 100644
--- a/templates/show/firewall/node.tag/detail/node.def
+++ b/templates/show/firewall/node.tag/detail/node.def
@@ -1,3 +1,3 @@
help: Show firewall rules (detail output)
-run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/xsl/show_firewall_tail.xsl
+run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/share/xsl/show_firewall_detail.xsl
diff --git a/templates/show/firewall/node.tag/detail/rule/node.def b/templates/show/firewall/node.tag/detail/rule/node.def
new file mode 100644
index 0000000..6e56d93
--- /dev/null
+++ b/templates/show/firewall/node.tag/detail/rule/node.def
@@ -0,0 +1,2 @@
+help: Show firewall rules (detail output)
+
diff --git a/templates/show/firewall/node.tag/detail/rule/node.tag/node.def b/templates/show/firewall/node.tag/detail/rule/node.tag/node.def
index 70f91b3..2d5d2ee 100644
--- a/templates/show/firewall/node.tag/detail/rule/node.tag/node.def
+++ b/templates/show/firewall/node.tag/detail/rule/node.tag/node.def
@@ -1,3 +1,4 @@
-help: Show firewall rules (detail output)
-run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/xsl/show_firewall_tail.xsl $6
+help: Show detailed information about one firewall rule
+allowed: echo -n "<NUMBER>"
+run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/share/xsl/show_firewall_detail.xsl $6
diff --git a/templates/show/firewall/node.tag/node.def b/templates/show/firewall/node.tag/node.def
index 6465754..abc66d4 100644
--- a/templates/show/firewall/node.tag/node.def
+++ b/templates/show/firewall/node.tag/node.def
@@ -1,3 +1,4 @@
-help: Show firewall rules (summary output)
-run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/xsl/show_firewall.xsl
+help: Show firewall rules for given chain
+allowed: iptables --list -n | grep ^Chain | awk '{ print $2 }'
+run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/share/xsl/show_firewall.xsl
diff --git a/templates/show/firewall/node.tag/rule/node.def b/templates/show/firewall/node.tag/rule/node.def
new file mode 100644
index 0000000..68ac29b
--- /dev/null
+++ b/templates/show/firewall/node.tag/rule/node.def
@@ -0,0 +1 @@
+help: Show firewall rules (summary output)
diff --git a/templates/show/firewall/node.tag/rule/node.tag/node.def b/templates/show/firewall/node.tag/rule/node.tag/node.def
index f862b10..ba37eb7 100644
--- a/templates/show/firewall/node.tag/rule/node.tag/node.def
+++ b/templates/show/firewall/node.tag/rule/node.tag/node.def
@@ -1,3 +1,4 @@
help: Show firewall rules (summary output)
-run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/xsl/show_firewall.xsl $5
+allowed: echo -n "<NUMBER>"
+run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/share/xsl/show_firewall.xsl $5
diff --git a/templates/show/firewall/node.tag/statistics/node.def b/templates/show/firewall/node.tag/statistics/node.def
index 2d160a5..be7a8a1 100644
--- a/templates/show/firewall/node.tag/statistics/node.def
+++ b/templates/show/firewall/node.tag/statistics/node.def
@@ -1,3 +1,3 @@
help: Show firewall counter information
-run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/xsl/show_firewall_statistics.xsl
+run: ${vyatta_sbindir}/vyatta-show-firewall.pl $3 /opt/vyatta/share/xsl/show_firewall_statistics.xsl