summaryrefslogtreecommitdiff
path: root/templates/clear
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-01-31 19:00:25 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-01-31 19:00:25 -0800
commit2df1cf3efa49ea18aebd72c543b6e0a4f1999aab (patch)
tree3b341e319d15eb7bcb974900d180dee14eb94ee5 /templates/clear
parentbe222d3cf120da650ff9c3f942c9f21261fced90 (diff)
downloadvyatta-op-2df1cf3efa49ea18aebd72c543b6e0a4f1999aab.tar.gz
vyatta-op-2df1cf3efa49ea18aebd72c543b6e0a4f1999aab.zip
- Add "show ip route forward"
- Add "show ip route cache" - Add "clear ip route cache"
Diffstat (limited to 'templates/clear')
-rw-r--r--templates/clear/ip/route/cache/node.def2
-rw-r--r--templates/clear/ip/route/cache/node.tag/node.def3
-rw-r--r--templates/clear/ip/route/node.def1
3 files changed, 6 insertions, 0 deletions
diff --git a/templates/clear/ip/route/cache/node.def b/templates/clear/ip/route/cache/node.def
new file mode 100644
index 0000000..3ec559d
--- /dev/null
+++ b/templates/clear/ip/route/cache/node.def
@@ -0,0 +1,2 @@
+help: Flush the kernel route cache
+run: sudo ip route flush cache
diff --git a/templates/clear/ip/route/cache/node.tag/node.def b/templates/clear/ip/route/cache/node.tag/node.def
new file mode 100644
index 0000000..288fcbc
--- /dev/null
+++ b/templates/clear/ip/route/cache/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Flush the kernel route cache for a given route
+allowed: echo -n '<network>'
+run: sudo ip route flush cache $5
diff --git a/templates/clear/ip/route/node.def b/templates/clear/ip/route/node.def
new file mode 100644
index 0000000..9b5753b
--- /dev/null
+++ b/templates/clear/ip/route/node.def
@@ -0,0 +1 @@
+help: Clear IP route