Commit f1b73bb1 authored by Leigh B Stoller's avatar Leigh B Stoller

Bug fix; set the max_speed properly (for the interfaces enum).

parent 45c45e7d
......@@ -237,19 +237,21 @@ my $type;
my $max_speed;
if( $speed eq "100Mb" ) {
$type = "generic";
$max_speed = "100000";
$max_speed = "100";
} elsif( $speed eq "10Gb" ) {
$type = "generic_10G";
$max_speed = "10000000";
$max_speed = "10000";
} elsif( $speed eq "40Gb" ) {
$type = "generic_40G";
$max_speed = "40000000";
$max_speed = "40000";
} elsif( $speed eq "100Gb" ) {
$type = "generic_100G";
$max_speed = "100000000";
$max_speed = "100000";
} else { # default is 1G for backward compatibility
$type = "generic_1G";
$max_speed = "1000000";
$max_speed = "1000";
}
my $ifaceargs = {
"card" => $nodecard,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment