summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorroot <root@eng-140.vyatta.com>2008-08-22 09:41:27 -0700
committerroot <root@eng-140.vyatta.com>2008-08-22 09:41:27 -0700
commitd7e0e1579b84215eee801e0e033c0b60eb09a1c8 (patch)
tree7441204438820065bca2ef3154c56cf4f7f011ad /scripts
parentf078bf6b45cd1ab2742f79534369a54a0df27791 (diff)
downloadvyatta-wanloadbalance-d7e0e1579b84215eee801e0e033c0b60eb09a1c8.tar.gz
vyatta-wanloadbalance-d7e0e1579b84215eee801e0e033c0b60eb09a1c8.zip
fix for bug 3620. exclusion option is now provided and will create an accept rule. For an exclusion the user does not need to configure interfaces for that rule to balance across.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-wanloadbalance.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl
index e5c3373..b71c54d 100644
--- a/scripts/vyatta-wanloadbalance.pl
+++ b/scripts/vyatta-wanloadbalance.pl
@@ -86,6 +86,11 @@ sub write_rules {
$config->setLevel('load-balancing wan rule');
+ if ($config->exists("$rule exclude")) {
+ $valid = "true";
+ print FILE_LCK "\texclude\n";
+ }
+
my $protocol = $config->returnValue("$rule protocol");
if (defined $protocol) {
print FILE_LCK "\tprotocol " . $protocol . "\n"