diff options
author | slioch <slioch@eng-140.vyatta.com> | 2008-10-09 10:36:02 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2008-10-09 10:36:02 -0700 |
commit | a601a306e9cbde0adfe38b82ef995bf1a502a63d (patch) | |
tree | 75ff2ae5f345d1e709fe21c9ddc64460a6dc1f16 /templates | |
parent | b609346303808602ef0aea00e73adca2430ace67 (diff) | |
download | vyatta-wanloadbalance-a601a306e9cbde0adfe38b82ef995bf1a502a63d.tar.gz vyatta-wanloadbalance-a601a306e9cbde0adfe38b82ef995bf1a502a63d.zip |
allow free form text field entry for inbound-interface. This allows a wildcard (iptables style) interface to be set, allowing an
exclusion rule to be set so that lan-to-lan traffic can be support in wan load balance.
closing out bug 3764 with this change.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def b/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def index 8ed225f..cb0b953 100644 --- a/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def +++ b/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def @@ -1,12 +1,3 @@ type: txt help: Set inbound 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 +comp_help: Enter a network interface name, for example, "eth0" |