diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-04-14 16:54:29 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-04-14 16:54:29 -0700 |
commit | 6a02f0478cdbee2fc38edc9b6821fed5c9c13f1a (patch) | |
tree | 3f9c2ff190c948f5bbf13f47522d29009f4e0b10 /templates/load-balancing | |
parent | 7297e007d00807352062ae34aded3a71937d21f5 (diff) | |
download | vyatta-wanloadbalance-6a02f0478cdbee2fc38edc9b6821fed5c9c13f1a.tar.gz vyatta-wanloadbalance-6a02f0478cdbee2fc38edc9b6821fed5c9c13f1a.zip |
allow vlan for load-balancing interface
Show all interfaces (except loopback) as possible.
Diffstat (limited to 'templates/load-balancing')
-rw-r--r-- | templates/load-balancing/wan/interface-health/node.def | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/load-balancing/wan/interface-health/node.def b/templates/load-balancing/wan/interface-health/node.def index fb23378..29aa785 100644 --- a/templates/load-balancing/wan/interface-health/node.def +++ b/templates/load-balancing/wan/interface-health/node.def @@ -2,12 +2,12 @@ tag: type: txt help: interface name syntax:expression: exec " \ - if [ -z \"`ip link | egrep -v 'eth[0-9]+[.]' | grep $VAR(@)`\" ]; then \ + if [ -z \"`ip link | grep $VAR(@)`\" ]; then \ echo Invalid interface [$VAR(@)]; \ exit 1 ; \ fi ; " allowed: for dev in /sys/class/net/*; - do if [[ -L $dev/device ]] - then echo -n ${dev##*/} " " + do if [[ ! $dev =~ "net/lo" ]]; then + echo -n ${dev##*/} " " fi done |