From 43ccc1bb5e446ec8c94cabe21fa7e8d68ffe07e3 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 26 Feb 2009 12:51:57 -0800 Subject: Use new --vif option to find allowed interfaces --- templates/show/interfaces/ethernet/node.tag/vif/node.tag/node.def | 4 +--- 1 file changed, 1 insertion(+), 3 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 52bfbee..88f6157 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,5 +1,3 @@ help: Show specified virtual network interface (vif) information -allowed: local -a array ; - array=( /sys/class/net/${COMP_WORDS[3]}.* ) ; - echo -n ${array[@]##*.} +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show ethernet --vif $4 run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4.$6" -- cgit v1.2.3