From 6a02f0478cdbee2fc38edc9b6821fed5c9c13f1a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 14 Apr 2008 16:54:29 -0700 Subject: allow vlan for load-balancing interface Show all interfaces (except loopback) as possible. --- templates/load-balancing/wan/interface-health/node.def | 6 +++--- 1 file 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 -- cgit v1.2.3