summaryrefslogtreecommitdiff
path: root/templates/load-balancing/wan/interface-health/node.def
blob: 24a05c0affa418e9a9be348a2b29d6cf471ee9cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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