diff options
| author | root <root@eng-140.vyatta.com> | 2008-08-12 10:03:05 -0700 |
|---|---|---|
| committer | root <root@eng-140.vyatta.com> | 2008-08-12 10:03:05 -0700 |
| commit | f078bf6b45cd1ab2742f79534369a54a0df27791 (patch) | |
| tree | 0998ac052f9d34363b84c5929c5edded4bd14d60 /scripts | |
| parent | 4740d1b5ed3a0f888322274a0a33e9b359e04c0d (diff) | |
| download | vyatta-wanloadbalance-f078bf6b45cd1ab2742f79534369a54a0df27791.tar.gz vyatta-wanloadbalance-f078bf6b45cd1ab2742f79534369a54a0df27791.zip | |
fix for bug 3530. now nexthop and inbound-interface are required for a successful commit.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/vyatta-wanloadbalance.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl index 2339ec5..e5c3373 100644 --- a/scripts/vyatta-wanloadbalance.pl +++ b/scripts/vyatta-wanloadbalance.pl @@ -58,6 +58,10 @@ sub write_health { if (defined $option) { print FILE_LCK "\t\tnexthop " . $option . "\n"; } + else { + print "nexthop must be specified\n"; + exit 1; + } print FILE_LCK "\t}\n"; } print FILE_LCK "}\n\n"; @@ -165,6 +169,10 @@ sub write_rules { if (defined $option) { print FILE_LCK "\tinbound-interface " . $option . "\n" } + else { + print "inbound-interface must be specified\n"; + exit 1; + } #interface $config->setLevel("load-balancing wan rule $rule interface"); |
