diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-07-07 14:35:48 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-07-07 14:35:48 -0700 |
commit | 9f4e8c1deba76ef81878551040f16180baaf23be (patch) | |
tree | 7803183d819811ec3eaa25c3e995ba1f1dc285b4 /scripts/vyatta-bonding.pl | |
parent | 7c681e2a62388ead8ad2e74a76ff1b0ae386f78f (diff) | |
download | vyatta-cfg-system-9f4e8c1deba76ef81878551040f16180baaf23be.tar.gz vyatta-cfg-system-9f4e8c1deba76ef81878551040f16180baaf23be.zip |
Allow round-robin to be selected
Simpler version of bug 4647 fix.
Diffstat (limited to 'scripts/vyatta-bonding.pl')
-rwxr-xr-x | scripts/vyatta-bonding.pl | 2 |
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"; |