summaryrefslogtreecommitdiff
path: root/templates/show/policy
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/policy')
-rw-r--r--templates/show/policy/ipv6-route/node.def2
-rw-r--r--templates/show/policy/ipv6-route/node.tag/node.def7
-rw-r--r--templates/show/policy/ipv6-route/node.tag/rule/node.def1
-rw-r--r--templates/show/policy/ipv6-route/node.tag/rule/node.tag/node.def8
-rw-r--r--templates/show/policy/ipv6-route/node.tag/statistics/node.def2
-rw-r--r--templates/show/policy/ipv6-route/statistics/node.def2
-rwxr-xr-xtemplates/show/policy/node.def2
-rw-r--r--templates/show/policy/route/node.def2
-rw-r--r--templates/show/policy/route/node.tag/node.def7
-rw-r--r--templates/show/policy/route/node.tag/rule/node.def1
-rw-r--r--templates/show/policy/route/node.tag/rule/node.tag/node.def8
-rw-r--r--templates/show/policy/route/node.tag/statistics/node.def2
-rw-r--r--templates/show/policy/route/statistics/node.def2
13 files changed, 46 insertions, 0 deletions
diff --git a/templates/show/policy/ipv6-route/node.def b/templates/show/policy/ipv6-route/node.def
new file mode 100644
index 0000000..4aee1ea
--- /dev/null
+++ b/templates/show/policy/ipv6-route/node.def
@@ -0,0 +1,2 @@
+help: Show IPv6 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/ipv6-route/node.tag/node.def b/templates/show/policy/ipv6-route/node.tag/node.def
new file mode 100644
index 0000000..60f872b
--- /dev/null
+++ b/templates/show/policy/ipv6-route/node.tag/node.def
@@ -0,0 +1,7 @@
+help: Show rules for given IPv6 firewall modify chain
+
+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_detail.xsl
diff --git a/templates/show/policy/ipv6-route/node.tag/rule/node.def b/templates/show/policy/ipv6-route/node.tag/rule/node.def
new file mode 100644
index 0000000..b4face1
--- /dev/null
+++ b/templates/show/policy/ipv6-route/node.tag/rule/node.def
@@ -0,0 +1 @@
+help: Show summary of IPv6 firewall modify rules
diff --git a/templates/show/policy/ipv6-route/node.tag/rule/node.tag/node.def b/templates/show/policy/ipv6-route/node.tag/rule/node.tag/node.def
new file mode 100644
index 0000000..fa7b4cb
--- /dev/null
+++ b/templates/show/policy/ipv6-route/node.tag/rule/node.tag/node.def
@@ -0,0 +1,8 @@
+help: Show summary of IPv6 firewall modify rules
+
+allowed: local -a vals
+ eval "vals=($(cli-shell-api listActiveNodes \
+ 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_detail.xsl "$6"
diff --git a/templates/show/policy/ipv6-route/node.tag/statistics/node.def b/templates/show/policy/ipv6-route/node.tag/statistics/node.def
new file mode 100644
index 0000000..707efa3
--- /dev/null
+++ b/templates/show/policy/ipv6-route/node.tag/statistics/node.def
@@ -0,0 +1,2 @@
+help: Show IPv6 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/ipv6-route/statistics/node.def b/templates/show/policy/ipv6-route/statistics/node.def
new file mode 100644
index 0000000..ae89dec
--- /dev/null
+++ b/templates/show/policy/ipv6-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
diff --git a/templates/show/policy/node.def b/templates/show/policy/node.def
new file mode 100755
index 0000000..c8c1c34
--- /dev/null
+++ b/templates/show/policy/node.def
@@ -0,0 +1,2 @@
+help: Show policy information
+run: ${vyatta_bindir}/vyatta-show-firewall.pl "policy_all" /opt/vyatta/share/xsl/show_firewall_detail.xsl
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