summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-10 12:36:29 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-10 12:36:29 -0800
commit0f2cec6f58d3faa2b69cfb7d156e3be686f1ad8b (patch)
tree3cda96ebb6649ef0d6cf4e9841c70535af8cdb6c
parentb058864b0cfc71821613ec1af9a0b090bb1c478a (diff)
downloadvyatta-op-qos-0f2cec6f58d3faa2b69cfb7d156e3be686f1ad8b.tar.gz
vyatta-op-qos-0f2cec6f58d3faa2b69cfb7d156e3be686f1ad8b.zip
Use vyatta-interfaces to complete ethernet list
-rw-r--r--templates/show/queueing/ethernet/node.tag/node.def8
1 files changed, 1 insertions, 7 deletions
diff --git a/templates/show/queueing/ethernet/node.tag/node.def b/templates/show/queueing/ethernet/node.tag/node.def
index 3643a94..55a9aac 100644
--- a/templates/show/queueing/ethernet/node.tag/node.def
+++ b/templates/show/queueing/ethernet/node.tag/node.def
@@ -1,9 +1,3 @@
help: Show specified ethernet interface information
-allowed: for dev in /sys/class/net/*;
- do if [[ -L $dev/device ]]
- then if [[ $(cat $dev/type) -eq 1 ]]
- then echo -n ${dev##*/} " "
- fi
- fi
- done
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=ethernet
run: ${vyatta_bindir}/vyatta-show-queueing.pl "$4"