summaryrefslogtreecommitdiff
path: root/templates/show/interfaces/ethernet
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-01 11:17:04 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-12 22:01:45 -0700
commit4c5053a29e9caba6374712a1bb197548dcbb3d1d (patch)
tree75f9ae6e7484ec682ce4116cb37ac2a740b4ed61 /templates/show/interfaces/ethernet
parentd3045ca592c736bc4a56c2a3d77064a84280711c (diff)
downloadvyatta-op-4c5053a29e9caba6374712a1bb197548dcbb3d1d.tar.gz
vyatta-op-4c5053a29e9caba6374712a1bb197548dcbb3d1d.zip
Fix completion for VIF
Use COMP_WORDS to find real device name
Diffstat (limited to 'templates/show/interfaces/ethernet')
-rw-r--r--templates/show/interfaces/ethernet/node.tag/vif/node.tag/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/show/interfaces/ethernet/node.tag/vif/node.tag/node.def b/templates/show/interfaces/ethernet/node.tag/vif/node.tag/node.def
index 88f6157..bc47fb6 100644
--- a/templates/show/interfaces/ethernet/node.tag/vif/node.tag/node.def
+++ b/templates/show/interfaces/ethernet/node.tag/vif/node.tag/node.def
@@ -1,3 +1,3 @@
help: Show specified virtual network interface (vif) information
-allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show ethernet --vif $4
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show ethernet --vif ${COMP_WORDS[COMP_CWORD-2]}
run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4.$6"