summaryrefslogtreecommitdiff
path: root/templates/show/interfaces/bonding
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 14:10:08 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 14:10:08 -0800
commited07cff15234b716d58c52dcf315ddc493d896e7 (patch)
tree86e1d8d2bb7c1f852b719c8b12fbb97ce30ac6af /templates/show/interfaces/bonding
parent7d74c1863204dd7666f1b9085828eee374893d3c (diff)
downloadvyatta-op-ed07cff15234b716d58c52dcf315ddc493d896e7.tar.gz
vyatta-op-ed07cff15234b716d58c52dcf315ddc493d896e7.zip
Use vyatta-interfaces --show to display allowed types
Simple way to handle interface names for allowed:
Diffstat (limited to 'templates/show/interfaces/bonding')
-rw-r--r--templates/show/interfaces/bonding/node.tag/node.def6
1 files changed, 1 insertions, 5 deletions
diff --git a/templates/show/interfaces/bonding/node.tag/node.def b/templates/show/interfaces/bonding/node.tag/node.def
index 0cf4016..c2f1349 100644
--- a/templates/show/interfaces/bonding/node.tag/node.def
+++ b/templates/show/interfaces/bonding/node.tag/node.def
@@ -1,7 +1,3 @@
help: Show specified bonding interface information
-allowed: for dev in /sys/class/net/*;
- do if [[ -d $dev/bonding ]]
- then echo -n ${dev##*/} " "
- fi
- done
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show bonding
run: ${vyatta_bindir}/vyatta-show-bonding.pl "$4"