summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-17 18:56:39 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:28 -0500
commitba0f07edf87c91e9e3e382d7a40b8d60651fd620 (patch)
treeb016768bfd5fc1ba92eb1f4fbbcf8069c05335be
parentec2beb65dc7430b6c2d7abebc06a789e9139a6bd (diff)
downloadvyatta-op-ba0f07edf87c91e9e3e382d7a40b8d60651fd620.tar.gz
vyatta-op-ba0f07edf87c91e9e3e382d7a40b8d60651fd620.zip
Move 'clear arp' to 'reset ip arp'
(cherry picked from commit 2e54f9d80f908032a6e3c1ed1413941aa5685cd9)
-rw-r--r--templates/reset/ip/arp/address/node.def1
-rw-r--r--templates/reset/ip/arp/address/node.tag/node.def3
-rw-r--r--templates/reset/ip/arp/interface/node.def1
-rw-r--r--templates/reset/ip/arp/interface/node.tag/node.def3
-rw-r--r--templates/reset/ip/arp/node.def1
-rw-r--r--templates/reset/ip/node.def1
6 files changed, 10 insertions, 0 deletions
diff --git a/templates/reset/ip/arp/address/node.def b/templates/reset/ip/arp/address/node.def
new file mode 100644
index 0000000..cf31916
--- /dev/null
+++ b/templates/reset/ip/arp/address/node.def
@@ -0,0 +1 @@
+help: Reset ARP cache for an IPv4 address
diff --git a/templates/reset/ip/arp/address/node.tag/node.def b/templates/reset/ip/arp/address/node.tag/node.def
new file mode 100644
index 0000000..8ac537c
--- /dev/null
+++ b/templates/reset/ip/arp/address/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Reset ARP cache for an IPv4 address
+allowed: echo -n '<x.x.x.x>'
+run: sudo /sbin/ip neigh flush to "$5"
diff --git a/templates/reset/ip/arp/interface/node.def b/templates/reset/ip/arp/interface/node.def
new file mode 100644
index 0000000..e6d79a2
--- /dev/null
+++ b/templates/reset/ip/arp/interface/node.def
@@ -0,0 +1 @@
+help: Reset ARP cache for interface
diff --git a/templates/reset/ip/arp/interface/node.tag/node.def b/templates/reset/ip/arp/interface/node.tag/node.def
new file mode 100644
index 0000000..bee6173
--- /dev/null
+++ b/templates/reset/ip/arp/interface/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Reset ARP cache for interface
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
+run: sudo /sbin/ip neigh flush dev "$5"
diff --git a/templates/reset/ip/arp/node.def b/templates/reset/ip/arp/node.def
new file mode 100644
index 0000000..ebc0a37
--- /dev/null
+++ b/templates/reset/ip/arp/node.def
@@ -0,0 +1 @@
+help: Reset Address Resolution Protocol (ARP) cache
diff --git a/templates/reset/ip/node.def b/templates/reset/ip/node.def
new file mode 100644
index 0000000..0f5e0e1
--- /dev/null
+++ b/templates/reset/ip/node.def
@@ -0,0 +1 @@
+help: Reset Internet Protocol (IP) parameters