diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-04-14 18:19:17 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-04-14 18:19:17 -0700 |
commit | 2831068990f7942ecd0bad9f050f0cce413c0189 (patch) | |
tree | f002db8a33c5bb6d9e2083fe0562739a95914faa /templates | |
parent | 1fa46ab7ec19b8619f042c9384b25b9ba6b6d1ad (diff) | |
parent | 6a02f0478cdbee2fc38edc9b6821fed5c9c13f1a (diff) | |
download | vyatta-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.def | 11 |
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 |