summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-01-22 14:45:41 -0800
committerBob Gilligan <gilligan@vyatta.com>2009-01-22 14:45:41 -0800
commit34872103f72e72193f9cc611af4ad34293d70d82 (patch)
treee480e7ea30fd5643bc3d7de72d31d202a1d7f527 /templates
parent2d8f7f3286dd7697aafc664b07be7b93cfb6939e (diff)
downloadvyatta-op-firewall-34872103f72e72193f9cc611af4ad34293d70d82.tar.gz
vyatta-op-firewall-34872103f72e72193f9cc611af4ad34293d70d82.zip
Initial support for IPv6.
Diffstat (limited to 'templates')
-rw-r--r--templates/show/firewall/node.def1
-rw-r--r--templates/show/firewall/node.tag/detail/node.def1
-rw-r--r--templates/show/firewall/node.tag/detail/rule/node.tag/node.def2
-rw-r--r--templates/show/firewall/node.tag/node.def9
-rw-r--r--templates/show/firewall/node.tag/rule/node.tag/node.def2
5 files changed, 14 insertions, 1 deletions
diff --git a/templates/show/firewall/node.def b/templates/show/firewall/node.def
index 376c8e3..dcce274 100644
--- a/templates/show/firewall/node.def
+++ b/templates/show/firewall/node.def
@@ -1,3 +1,4 @@
help: Show firewall information
+
run: ${vyatta_bindir}/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 450efbd..636dae0 100644
--- a/templates/show/firewall/node.tag/detail/node.def
+++ b/templates/show/firewall/node.tag/detail/node.def
@@ -1,3 +1,4 @@
help: Show detailed firewall rules inforamtion
+
run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3" /opt/vyatta/share/xsl/show_firewall_detail.xsl
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 998af2a..525035b 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,4 +1,6 @@
help: Show detailed information for specified firewall rule
+
allowed: echo -n "<NUMBER>"
+
run: ${vyatta_bindir}/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 fd72e01..78c9857 100644
--- a/templates/show/firewall/node.tag/node.def
+++ b/templates/show/firewall/node.tag/node.def
@@ -1,4 +1,11 @@
help: Show firewall rules for given chain
-allowed: ls /opt/vyatta/config/active/firewall/name/ 2>/dev/null
+
+allowed:
+ l1=`ls /opt/vyatta/config/active/firewall/name/ 2>/dev/null`
+ l2=`ls /opt/vyatta/config/active/firewall/ipv6-name/ 2>/dev/null`
+ l3=`ls /opt/vyatta/config/active/firewall/modify/ 2>/dev/null`
+ l4=`ls /opt/vyatta/config/active/firewall/ipv6-modify/ 2>/dev/null`
+ echo $l1 $l2 $l3 $l3
+
run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3" /opt/vyatta/share/xsl/show_firewall.xsl
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 f9a9cc9..931c15d 100644
--- a/templates/show/firewall/node.tag/rule/node.tag/node.def
+++ b/templates/show/firewall/node.tag/rule/node.tag/node.def
@@ -1,4 +1,6 @@
help: Show summary of firewall rules
+
allowed: echo -n "<NUMBER>"
+
run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3" /opt/vyatta/share/xsl/show_firewall.xsl "$5"