diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-08-18 18:25:29 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:28 -0500 |
commit | 20f811096765700c5eff5fd86c29be3bd53f0d7b (patch) | |
tree | 555f5c836656fe1ec6b323b9b29f7120e4974130 /templates/reset | |
parent | 48c7c6e6e2cf737158822191adbc55924de1137e (diff) | |
download | vyatta-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')
-rw-r--r-- | templates/reset/ip/route/cache/node.def | 2 | ||||
-rw-r--r-- | templates/reset/ip/route/cache/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/reset/ip/route/node.def | 1 | ||||
-rw-r--r-- | templates/reset/ipv6/neighbors/address/node.def | 1 | ||||
-rw-r--r-- | templates/reset/ipv6/neighbors/address/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/reset/ipv6/neighbors/interface/node.def | 1 | ||||
-rw-r--r-- | templates/reset/ipv6/neighbors/interface/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/reset/ipv6/neighbors/node.def | 1 | ||||
-rw-r--r-- | templates/reset/ipv6/node.def | 1 | ||||
-rw-r--r-- | templates/reset/ipv6/route/cache/node.def | 2 | ||||
-rw-r--r-- | templates/reset/ipv6/route/cache/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/reset/ipv6/route/node.def | 1 |
12 files changed, 22 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 diff --git a/templates/reset/ipv6/neighbors/address/node.def b/templates/reset/ipv6/neighbors/address/node.def new file mode 100644 index 0000000..e163359 --- /dev/null +++ b/templates/reset/ipv6/neighbors/address/node.def @@ -0,0 +1 @@ +help: Reset ND cache for an IPv6 address diff --git a/templates/reset/ipv6/neighbors/address/node.tag/node.def b/templates/reset/ipv6/neighbors/address/node.tag/node.def new file mode 100644 index 0000000..4aaec8a --- /dev/null +++ b/templates/reset/ipv6/neighbors/address/node.tag/node.def @@ -0,0 +1,3 @@ +help: Clear ND cache for an IPv6 address +allowed: echo -n '<h:h:h:h:h:h:h:h>' +run: sudo /sbin/ip -f inet6 neigh flush to "$5" diff --git a/templates/reset/ipv6/neighbors/interface/node.def b/templates/reset/ipv6/neighbors/interface/node.def new file mode 100644 index 0000000..c455aa1 --- /dev/null +++ b/templates/reset/ipv6/neighbors/interface/node.def @@ -0,0 +1 @@ +help: Reset IPv6 ND cache for interface diff --git a/templates/reset/ipv6/neighbors/interface/node.tag/node.def b/templates/reset/ipv6/neighbors/interface/node.tag/node.def new file mode 100644 index 0000000..46a89a9 --- /dev/null +++ b/templates/reset/ipv6/neighbors/interface/node.tag/node.def @@ -0,0 +1,3 @@ +help: Reset IPv6 ND cache for interface +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all +run: sudo /sbin/ip -f inet6 neigh flush dev "$5" diff --git a/templates/reset/ipv6/neighbors/node.def b/templates/reset/ipv6/neighbors/node.def new file mode 100644 index 0000000..138725d --- /dev/null +++ b/templates/reset/ipv6/neighbors/node.def @@ -0,0 +1 @@ +help: Reset IPv6 Neighbor Discovery (ND) cache diff --git a/templates/reset/ipv6/node.def b/templates/reset/ipv6/node.def new file mode 100644 index 0000000..5c80950 --- /dev/null +++ b/templates/reset/ipv6/node.def @@ -0,0 +1 @@ +help: Reset Internet Protocol version 6 (IPv6) parameters diff --git a/templates/reset/ipv6/route/cache/node.def b/templates/reset/ipv6/route/cache/node.def new file mode 100644 index 0000000..7dee140 --- /dev/null +++ b/templates/reset/ipv6/route/cache/node.def @@ -0,0 +1,2 @@ +help: Flush the kernel IPv6 route cache +run: sudo /sbin/ip -f inet6 route flush cache diff --git a/templates/reset/ipv6/route/cache/node.tag/node.def b/templates/reset/ipv6/route/cache/node.tag/node.def new file mode 100644 index 0000000..af6a3db --- /dev/null +++ b/templates/reset/ipv6/route/cache/node.tag/node.def @@ -0,0 +1,3 @@ +help: Flush the kernel IPv6 route cache for a given route +allowed: echo -n '<h:h:h:h:h:h:h:h | h:h:h:h:h:h:h:h/x>' +run: sudo /sbin/ip -f inet6 route flush cache "$5" diff --git a/templates/reset/ipv6/route/node.def b/templates/reset/ipv6/route/node.def new file mode 100644 index 0000000..72c83a8 --- /dev/null +++ b/templates/reset/ipv6/route/node.def @@ -0,0 +1 @@ +help: Reset IPv6 route |