summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2011-12-14 03:32:13 +0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2011-12-14 03:32:13 +0700
commit53969cb1c8993028597d3ea9e40e655678baf460 (patch)
treecba186b1c2f3926fc6f99675ca77f1c3311a9c5f
parent39faa21f2a9ee91e2035c70981ac0759b2597104 (diff)
downloadvyatta-nat-53969cb1c8993028597d3ea9e40e655678baf460.tar.gz
vyatta-nat-53969cb1c8993028597d3ea9e40e655678baf460.zip
Update op mode templates for "clear nat * counters".
-rw-r--r--templates-op/clear/nat/counters/node.def2
-rw-r--r--templates-op/clear/nat/counters/rule/node.def1
-rw-r--r--templates-op/clear/nat/destination/counters/node.def2
-rw-r--r--templates-op/clear/nat/destination/counters/rule/node.def1
-rw-r--r--templates-op/clear/nat/destination/counters/rule/node.tag/node.def3
-rw-r--r--templates-op/clear/nat/destination/node.def1
-rw-r--r--templates-op/clear/nat/node.def2
-rw-r--r--templates-op/clear/nat/source/counters/node.def2
-rw-r--r--templates-op/clear/nat/source/counters/rule/node.def1
-rw-r--r--templates-op/clear/nat/source/counters/rule/node.tag/node.def (renamed from templates-op/clear/nat/counters/rule/node.tag/node.def)4
-rw-r--r--templates-op/clear/nat/source/node.def1
11 files changed, 14 insertions, 6 deletions
diff --git a/templates-op/clear/nat/counters/node.def b/templates-op/clear/nat/counters/node.def
deleted file mode 100644
index 12a37df..0000000
--- a/templates-op/clear/nat/counters/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Clear NAT counters
-run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule=all
diff --git a/templates-op/clear/nat/counters/rule/node.def b/templates-op/clear/nat/counters/rule/node.def
deleted file mode 100644
index 806ad0a..0000000
--- a/templates-op/clear/nat/counters/rule/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Clear counters for a specific NAT rule
diff --git a/templates-op/clear/nat/destination/counters/node.def b/templates-op/clear/nat/destination/counters/node.def
new file mode 100644
index 0000000..790c978
--- /dev/null
+++ b/templates-op/clear/nat/destination/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear destination NAT counters
+run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule=all --type=destination
diff --git a/templates-op/clear/nat/destination/counters/rule/node.def b/templates-op/clear/nat/destination/counters/rule/node.def
new file mode 100644
index 0000000..fea7ea6
--- /dev/null
+++ b/templates-op/clear/nat/destination/counters/rule/node.def
@@ -0,0 +1 @@
+help: Clear counters for a specific destination NAT rule
diff --git a/templates-op/clear/nat/destination/counters/rule/node.tag/node.def b/templates-op/clear/nat/destination/counters/rule/node.tag/node.def
new file mode 100644
index 0000000..2a67812
--- /dev/null
+++ b/templates-op/clear/nat/destination/counters/rule/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Clear counters for a specific destination NAT rule
+allowed: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=print-nat-rules --clirule=all --type=destination
+run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule="$6" --type=destination
diff --git a/templates-op/clear/nat/destination/node.def b/templates-op/clear/nat/destination/node.def
new file mode 100644
index 0000000..f3f6f9b
--- /dev/null
+++ b/templates-op/clear/nat/destination/node.def
@@ -0,0 +1 @@
+help: Clear destination network address translation (NAT) tables
diff --git a/templates-op/clear/nat/node.def b/templates-op/clear/nat/node.def
index bbfa370..6423f11 100644
--- a/templates-op/clear/nat/node.def
+++ b/templates-op/clear/nat/node.def
@@ -1 +1 @@
-help: Clear Network Address Translation (NAT) tables
+help: Clear network address translation (NAT) tables
diff --git a/templates-op/clear/nat/source/counters/node.def b/templates-op/clear/nat/source/counters/node.def
new file mode 100644
index 0000000..80d3195
--- /dev/null
+++ b/templates-op/clear/nat/source/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear source NAT counters
+run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule=all --type=destination
diff --git a/templates-op/clear/nat/source/counters/rule/node.def b/templates-op/clear/nat/source/counters/rule/node.def
new file mode 100644
index 0000000..12d7341
--- /dev/null
+++ b/templates-op/clear/nat/source/counters/rule/node.def
@@ -0,0 +1 @@
+help: Clear counters for a specific source NAT rule
diff --git a/templates-op/clear/nat/counters/rule/node.tag/node.def b/templates-op/clear/nat/source/counters/rule/node.tag/node.def
index b8a07fe..1cae341 100644
--- a/templates-op/clear/nat/counters/rule/node.tag/node.def
+++ b/templates-op/clear/nat/source/counters/rule/node.tag/node.def
@@ -1,3 +1,3 @@
help: Clear counters for a specific NAT rule
-allowed: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=print-nat-rules --clirule=all
-run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule="$5"
+allowed: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=print-nat-rules --clirule=all --type=source
+run: /opt/vyatta/sbin/vyatta-clear-nat-counters.pl --action=clear-counters --clirule="$6" --type=source
diff --git a/templates-op/clear/nat/source/node.def b/templates-op/clear/nat/source/node.def
new file mode 100644
index 0000000..021e0e4
--- /dev/null
+++ b/templates-op/clear/nat/source/node.def
@@ -0,0 +1 @@
+help: Clear source network address translation (NAT) tables