diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-06-16 16:45:21 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-06-16 16:47:28 -0700 |
commit | e0de322e2abdbcde8ee6d46f54edb4702d2dae5b (patch) | |
tree | 49ab95f2d0818275f1cfd191f61609b43162f2dc /scripts/vyatta-wanloadbalance.pl | |
parent | d87805e89c31611ecf4ec7d7148d066a5eb99185 (diff) | |
download | vyatta-wanloadbalance-e0de322e2abdbcde8ee6d46f54edb4702d2dae5b.tar.gz vyatta-wanloadbalance-e0de322e2abdbcde8ee6d46f54edb4702d2dae5b.zip |
fix for bug 4578. Added warning message when the user configures inbound and outbound on same rule, but will allow configuration with warning.
Diffstat (limited to 'scripts/vyatta-wanloadbalance.pl')
-rw-r--r-- | scripts/vyatta-wanloadbalance.pl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl index c0c4a8d..edc9232 100644 --- a/scripts/vyatta-wanloadbalance.pl +++ b/scripts/vyatta-wanloadbalance.pl @@ -192,9 +192,9 @@ sub write_rules { print FILE_LCK "\t}\n"; #inbound-interface - $option = $config->returnValue("$rule inbound-interface"); - if (defined $option) { - print FILE_LCK "\tinbound-interface " . $option . "\n" + my $inbound = $config->returnValue("$rule inbound-interface"); + if (defined $inbound) { + print FILE_LCK "\tinbound-interface " . $inbound . "\n" } else { print "inbound-interface must be specified\n"; @@ -206,6 +206,9 @@ sub write_rules { my @eths = $config->listNodes(); foreach my $ethNode (@eths) { + if ($inbound eq $ethNode) { + print "WARNING: inbound interface is the same as the outbound interface\n"; + } $valid = "true"; |