diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-07-03 20:22:02 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-07-03 20:22:02 +0200 |
commit | 024581efa0ef93ec230d2384163abe3cb7357d37 (patch) | |
tree | 1ab79871b5d93b742c97c8257ea5d003e97f8950 | |
parent | a75ae90c1ac9648b2e73c8abbc7b761a28294d49 (diff) | |
download | vyatta-op-024581efa0ef93ec230d2384163abe3cb7357d37.tar.gz vyatta-op-024581efa0ef93ec230d2384163abe3cb7357d37.zip |
Add more interface types to "show arp" completion.
-rw-r--r-- | templates/show/arp/node.tag/node.def | 8 |
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" |