summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show/arp/node.tag/node.def8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/show/arp/node.tag/node.def b/templates/show/arp/node.tag/node.def
index 43b78a7..648797b 100644
--- a/templates/show/arp/node.tag/node.def
+++ b/templates/show/arp/node.tag/node.def
@@ -1,3 +1,7 @@
-help: Show Address Resolution Protocol (ARP) for a specific interface
-allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show ethernet
+help: Show Address Resolution Protocol (ARP) cache for specified interface
+allowed: local -a vals;
+ vals=($(${vyatta_sbindir}/vyatta-interfaces.pl --show ethernet));
+ vals+=($(${vyatta_sbindir}/vyatta-interfaces.pl --show bridge));
+ vals+=($(${vyatta_sbindir}/vyatta-interfaces.pl --show bonding));
+ echo ${vals[@]};
run: /usr/sbin/arp -e -n -i "$3"