From 2df1cf3efa49ea18aebd72c543b6e0a4f1999aab Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Thu, 31 Jan 2008 19:00:25 -0800 Subject: - Add "show ip route forward" - Add "show ip route cache" - Add "clear ip route cache" --- templates/clear/ip/route/cache/node.def | 2 ++ templates/clear/ip/route/cache/node.tag/node.def | 3 +++ templates/clear/ip/route/node.def | 1 + templates/show/ip/route/cache/node.def | 2 ++ templates/show/ip/route/cache/node.tag/node.def | 3 +++ templates/show/ip/route/forward/node.def | 2 ++ templates/show/ip/route/forward/node.tag/node.def | 3 +++ 7 files changed, 16 insertions(+) create mode 100644 templates/clear/ip/route/cache/node.def create mode 100644 templates/clear/ip/route/cache/node.tag/node.def create mode 100644 templates/clear/ip/route/node.def create mode 100644 templates/show/ip/route/cache/node.def create mode 100644 templates/show/ip/route/cache/node.tag/node.def create mode 100644 templates/show/ip/route/forward/node.def create mode 100644 templates/show/ip/route/forward/node.tag/node.def (limited to 'templates') 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 '' +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 diff --git a/templates/show/ip/route/cache/node.def b/templates/show/ip/route/cache/node.def new file mode 100644 index 0000000..098e724 --- /dev/null +++ b/templates/show/ip/route/cache/node.def @@ -0,0 +1,2 @@ +help: Show kernel route cache +run: ip -s route list cache diff --git a/templates/show/ip/route/cache/node.tag/node.def b/templates/show/ip/route/cache/node.tag/node.def new file mode 100644 index 0000000..85fe4e6 --- /dev/null +++ b/templates/show/ip/route/cache/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show kernel route cache for a given route +allowed: echo -n '' +run: ip -s route list cache $5 diff --git a/templates/show/ip/route/forward/node.def b/templates/show/ip/route/forward/node.def new file mode 100644 index 0000000..8612ba7 --- /dev/null +++ b/templates/show/ip/route/forward/node.def @@ -0,0 +1,2 @@ +help: Show kernel route table +run: ip route list diff --git a/templates/show/ip/route/forward/node.tag/node.def b/templates/show/ip/route/forward/node.tag/node.def new file mode 100644 index 0000000..257eb0f --- /dev/null +++ b/templates/show/ip/route/forward/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show kernel route table for a given route +allowed: echo -n '' +run: ip -s route list $5 -- cgit v1.2.3