summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-07-07 14:35:48 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-07-17 14:56:06 -0700
commit2b1af8589dbb6e2bbd40d497a1999c5c58e04eb0 (patch)
tree9cf8d891664c5dc5593217a319a6220cf8b82667
parent21413b1020d5233e5f122da72e36789697e6db9e (diff)
downloadvyatta-cfg-quagga-2b1af8589dbb6e2bbd40d497a1999c5c58e04eb0.tar.gz
vyatta-cfg-quagga-2b1af8589dbb6e2bbd40d497a1999c5c58e04eb0.zip
Allow round-robin to be selected
Simpler version of bug 4647 fix. (cherry picked from commit 9f4e8c1deba76ef81878551040f16180baaf23be)
-rwxr-xr-xscripts/vyatta-bonding.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-bonding.pl b/scripts/vyatta-bonding.pl
index 2f2167fa..a0bdbd6e 100755
--- a/scripts/vyatta-bonding.pl
+++ b/scripts/vyatta-bonding.pl
@@ -48,7 +48,7 @@ my %modes = (
sub set_mode {
my ($intf, $mode) = @_;
my $val = $modes{$mode};
- die "Unknown bonding mode $mode\n" unless $val;
+ die "Unknown bonding mode $mode\n" unless defined($val);
open my $fm, '>', "/sys/class/net/$intf/bonding/mode"
or die "Error: $intf is not a bonding device:$!\n";