summaryrefslogtreecommitdiff
path: root/templates/reset
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-17 19:00:41 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-17 19:00:41 -0500
commitc26d0f90bd39af8f58ab9f6ac75786c3dda87a55 (patch)
treea5a2ffdb24e7e273185dd3ffb3d31691cf8135c6 /templates/reset
parent2e54f9d80f908032a6e3c1ed1413941aa5685cd9 (diff)
downloadvyatta-op-c26d0f90bd39af8f58ab9f6ac75786c3dda87a55.tar.gz
vyatta-op-c26d0f90bd39af8f58ab9f6ac75786c3dda87a55.zip
Move 'clear dns' and 'clear connection-tracking' to 'reset dns' and
'reset connection-tracking'
Diffstat (limited to 'templates/reset')
-rw-r--r--templates/reset/connection-tracking/node.def2
-rw-r--r--templates/reset/dns/forwarding/all/node.def8
-rw-r--r--templates/reset/dns/forwarding/cache/node.def8
-rw-r--r--templates/reset/dns/forwarding/node.def1
-rw-r--r--templates/reset/dns/node.def1
5 files changed, 20 insertions, 0 deletions
diff --git a/templates/reset/connection-tracking/node.def b/templates/reset/connection-tracking/node.def
new file mode 100644
index 0000000..8e588da
--- /dev/null
+++ b/templates/reset/connection-tracking/node.def
@@ -0,0 +1,2 @@
+help: Clear all currently tracked connections
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-clear-conntrack
diff --git a/templates/reset/dns/forwarding/all/node.def b/templates/reset/dns/forwarding/all/node.def
new file mode 100644
index 0000000..b90aafb
--- /dev/null
+++ b/templates/reset/dns/forwarding/all/node.def
@@ -0,0 +1,8 @@
+help: Reset DNS forwarding cache and counters
+run:
+ if ps ax | grep dnsmasq | grep -v grep > /dev/null
+ then
+ sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --clear-all
+ else
+ echo "DNS forwarding not configured"
+ fi
diff --git a/templates/reset/dns/forwarding/cache/node.def b/templates/reset/dns/forwarding/cache/node.def
new file mode 100644
index 0000000..9e1a610
--- /dev/null
+++ b/templates/reset/dns/forwarding/cache/node.def
@@ -0,0 +1,8 @@
+help: Reset DNS forwarding cache
+run:
+ if ps ax | grep dnsmasq | grep -v grep > /dev/null
+ then
+ sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --clear-cache
+ else
+ echo "DNS forwarding not configured"
+ fi
diff --git a/templates/reset/dns/forwarding/node.def b/templates/reset/dns/forwarding/node.def
new file mode 100644
index 0000000..a1bcb10
--- /dev/null
+++ b/templates/reset/dns/forwarding/node.def
@@ -0,0 +1 @@
+help: Reset DNS forwarding variables
diff --git a/templates/reset/dns/node.def b/templates/reset/dns/node.def
new file mode 100644
index 0000000..5f8ef26
--- /dev/null
+++ b/templates/reset/dns/node.def
@@ -0,0 +1 @@
+help: Reset Domain Name Server (DNS) variables