summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-04-14 18:19:17 -0700
committerrbalocca <rbalocca@vyatta.com>2008-04-14 18:19:17 -0700
commit2831068990f7942ecd0bad9f050f0cce413c0189 (patch)
treef002db8a33c5bb6d9e2083fe0562739a95914faa /templates
parent1fa46ab7ec19b8619f042c9384b25b9ba6b6d1ad (diff)
parent6a02f0478cdbee2fc38edc9b6821fed5c9c13f1a (diff)
downloadvyatta-wanloadbalance-2831068990f7942ecd0bad9f050f0cce413c0189.tar.gz
vyatta-wanloadbalance-2831068990f7942ecd0bad9f050f0cce413c0189.zip
Merge branch 'glendale' into hollywood
Conflicts: templates/load-balancing/wan/interface-health/node.def
Diffstat (limited to 'templates')
-rw-r--r--templates/load-balancing/wan/interface-health/node.def11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/load-balancing/wan/interface-health/node.def b/templates/load-balancing/wan/interface-health/node.def
index 75cadd9..24a05c0 100644
--- a/templates/load-balancing/wan/interface-health/node.def
+++ b/templates/load-balancing/wan/interface-health/node.def
@@ -1,4 +1,13 @@
tag:
type: txt
help: Set interface name
-
+syntax:expression: exec " \
+ if [ -z \"`ip link | grep $VAR(@)`\" ]; then \
+ echo Invalid interface [$VAR(@)]; \
+ exit 1 ; \
+ fi ; "
+allowed: for dev in /sys/class/net/*;
+ do if [[ ! $dev =~ "net/lo" ]]; then
+ echo -n ${dev##*/} " "
+ fi
+ done