diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-04 14:45:46 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-04 14:45:46 -0800 |
commit | 6e2fad213bc2eec10bde64ebc1cc8c5bdcf7dc3e (patch) | |
tree | 9f200f966172b9021f73442fa3c62a39bd590f86 /templates/show/firewall/modify | |
parent | 54f1819713821759cf7348dac5ba3c9b31664515 (diff) | |
download | vyatta-op-firewall-6e2fad213bc2eec10bde64ebc1cc8c5bdcf7dc3e.tar.gz vyatta-op-firewall-6e2fad213bc2eec10bde64ebc1cc8c5bdcf7dc3e.zip |
modify 'show firewall' hierarchy per config mode cli
Diffstat (limited to 'templates/show/firewall/modify')
8 files changed, 26 insertions, 0 deletions
diff --git a/templates/show/firewall/modify/node.def b/templates/show/firewall/modify/node.def new file mode 100644 index 0000000..cbd2fc6 --- /dev/null +++ b/templates/show/firewall/modify/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.xsl diff --git a/templates/show/firewall/modify/node.tag/detail/node.def b/templates/show/firewall/modify/node.tag/detail/node.def new file mode 100644 index 0000000..3e11efe --- /dev/null +++ b/templates/show/firewall/modify/node.tag/detail/node.def @@ -0,0 +1,3 @@ +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 new file mode 100644 index 0000000..b67d3eb --- /dev/null +++ b/templates/show/firewall/modify/node.tag/detail/rule/node.def @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000..bc451e3 --- /dev/null +++ b/templates/show/firewall/modify/node.tag/detail/rule/node.tag/node.def @@ -0,0 +1,5 @@ +help: Show detailed information for specified IPv4 firewall modify rule + +allowed: ls /opt/vyatta/config/active/firewall/modify/${COMP_WORDS[COMP_CWORD-3]}/rule/ 2>/dev/null + +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 new file mode 100644 index 0000000..1bdce47 --- /dev/null +++ b/templates/show/firewall/modify/node.tag/node.def @@ -0,0 +1,7 @@ +help: Show rules for given IPv4 firewall modify chain + +allowed: + l1=`ls /opt/vyatta/config/active/firewall/modify/ 2>/dev/null` + echo $l1 + +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl diff --git a/templates/show/firewall/modify/node.tag/rule/node.def b/templates/show/firewall/modify/node.tag/rule/node.def new file mode 100644 index 0000000..44a9e1a --- /dev/null +++ b/templates/show/firewall/modify/node.tag/rule/node.def @@ -0,0 +1 @@ +help: Show summary of IPv4 firewall modify rules 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 new file mode 100644 index 0000000..be74324 --- /dev/null +++ b/templates/show/firewall/modify/node.tag/rule/node.tag/node.def @@ -0,0 +1,5 @@ +help: Show summary of IPv4 firewall modify rules + +allowed: ls /opt/vyatta/config/active/firewall/modify/${COMP_WORDS[COMP_CWORD-2]}/rule/ 2>/dev/null + +run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl "$6" diff --git a/templates/show/firewall/modify/node.tag/statistics/node.def b/templates/show/firewall/modify/node.tag/statistics/node.def new file mode 100644 index 0000000..a96479b --- /dev/null +++ b/templates/show/firewall/modify/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 |