From d7e0e1579b84215eee801e0e033c0b60eb09a1c8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Aug 2008 09:41:27 -0700 Subject: 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. --- scripts/vyatta-wanloadbalance.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') 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" -- cgit v1.2.3