summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-06-16 16:45:21 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-06-16 16:45:21 -0700
commite20836373f1b42e8567c0e513b8f049b04b61b5f (patch)
tree7224ba31ac6ce339840016332f07f4f3d74f6985
parentb5de6e8e6f60e6cf4d05136acad8d266f7452898 (diff)
downloadvyatta-wanloadbalance-e20836373f1b42e8567c0e513b8f049b04b61b5f.tar.gz
vyatta-wanloadbalance-e20836373f1b42e8567c0e513b8f049b04b61b5f.zip
fix for bug 4578. Added warning message when the user configures inbound and outbound on same rule, but will allow configuration with warning.
-rw-r--r--scripts/vyatta-wanloadbalance.pl9
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";