summaryrefslogtreecommitdiff
path: root/templates/reset/ip
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-18 18:25:29 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:28 -0500
commit20f811096765700c5eff5fd86c29be3bd53f0d7b (patch)
tree555f5c836656fe1ec6b323b9b29f7120e4974130 /templates/reset/ip
parent48c7c6e6e2cf737158822191adbc55924de1137e (diff)
downloadvyatta-op-20f811096765700c5eff5fd86c29be3bd53f0d7b.tar.gz
vyatta-op-20f811096765700c5eff5fd86c29be3bd53f0d7b.zip
Move some more commands
'clear ip route' to 'reset ip route' 'clear ipv6 route' to 'reset ipv6 route' 'clear ipv6 neighbors' to 'reset ipv6 route' Modified some telnet help text (cherry picked from commit 8d494099bcbeda63eabe8ef268dbc8838a17ffe9)
Diffstat (limited to 'templates/reset/ip')
-rw-r--r--templates/reset/ip/route/cache/node.def2
-rw-r--r--templates/reset/ip/route/cache/node.tag/node.def3
-rw-r--r--templates/reset/ip/route/node.def1
3 files changed, 6 insertions, 0 deletions
diff --git a/templates/reset/ip/route/cache/node.def b/templates/reset/ip/route/cache/node.def
new file mode 100644
index 0000000..b97e0c9
--- /dev/null
+++ b/templates/reset/ip/route/cache/node.def
@@ -0,0 +1,2 @@
+help: Flush the kernel route cache
+run: sudo /sbin/ip route flush cache
diff --git a/templates/reset/ip/route/cache/node.tag/node.def b/templates/reset/ip/route/cache/node.tag/node.def
new file mode 100644
index 0000000..4af1915
--- /dev/null
+++ b/templates/reset/ip/route/cache/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Flush the kernel route cache for a given route
+allowed: echo -n '<x.x.x.x | x.x.x.x/x>'
+run: sudo /sbin/ip route flush cache "$5"
diff --git a/templates/reset/ip/route/node.def b/templates/reset/ip/route/node.def
new file mode 100644
index 0000000..a4336f1
--- /dev/null
+++ b/templates/reset/ip/route/node.def
@@ -0,0 +1 @@
+help: Reset IP route