summaryrefslogtreecommitdiff
path: root/templates/clear
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 14:05:25 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 14:05:25 -0800
commit1fd9f1f09f8841b72080233ab0eee93bc0760ae3 (patch)
tree2a0c07d266fde979397bc20c0587563542547c66 /templates/clear
parentf5f7daa74e64aed0615cfc6509788f29a3b5e122 (diff)
downloadvyatta-op-1fd9f1f09f8841b72080233ab0eee93bc0760ae3.tar.gz
vyatta-op-1fd9f1f09f8841b72080233ab0eee93bc0760ae3.zip
Use show-interface to allow clear on all interface types
Should be able to clear ND and ARP on bonding, bridge, ethernet, serial, ... Fixed by just using standard script
Diffstat (limited to 'templates/clear')
-rw-r--r--templates/clear/arp/interface/node.tag/node.def4
-rw-r--r--templates/clear/ipv6/neighbors/interface/node.tag/node.def4
2 files changed, 2 insertions, 6 deletions
diff --git a/templates/clear/arp/interface/node.tag/node.def b/templates/clear/arp/interface/node.tag/node.def
index 35e83a9..1a12602 100644
--- a/templates/clear/arp/interface/node.tag/node.def
+++ b/templates/clear/arp/interface/node.tag/node.def
@@ -1,5 +1,3 @@
help: Clear ARP cache for interface
-allowed: local -a array ;
- array=( /sys/class/net/{eth,vmnet}* ) ;
- echo -n ${array[@]##*/}
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
run: sudo /sbin/ip neigh flush dev "$4"
diff --git a/templates/clear/ipv6/neighbors/interface/node.tag/node.def b/templates/clear/ipv6/neighbors/interface/node.tag/node.def
index 9bc879a..20cb549 100644
--- a/templates/clear/ipv6/neighbors/interface/node.tag/node.def
+++ b/templates/clear/ipv6/neighbors/interface/node.tag/node.def
@@ -1,5 +1,3 @@
help: Clear IPv6 ND cache for interface
-allowed: local -a array ;
- array=( /sys/class/net/{eth,vmnet}* ) ;
- echo -n ${array[@]##*/}
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
run: sudo /sbin/ip -f inet6 neigh flush dev "$5"