Commit 6b1cacc5 authored by Robert Ricci's avatar Robert Ricci

Fix top file creation for emulated links - I was inadvertantly using

the getbandwidth() call on them (which finds the closest matching
physical interface speed).
parent efe6b3bc
......@@ -3565,7 +3565,14 @@ sub virtlantopbw($$) {
if (defined($ebw)) {
$return_bw = $ebw;
} else {
$return_bw = &getbandwidth($node, $virtlan, $bw);
# If this is an emulated link, we put in only the reported bandwidth -
# otherwise, we put in the bandwidth of the type of physical interface
# it is likely to get mapped to
if (virtlanemulated($virtlan)) {
$return_bw = $bw;
} else {
$return_bw = &getbandwidth($node, $virtlan, $bw);
}
}
if (defined($rebw)) {
......
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