diff options
-rw-r--r-- | templates/clear/arp/interface/node.tag/node.def | 4 | ||||
-rw-r--r-- | templates/clear/ipv6/neighbors/interface/node.tag/node.def | 4 |
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" |