Commit e71aa413 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Say something (in a place the user actually sees) when linktest skips

a link cause the BW or Loss is out of range; post the messages back
through the event system so that it ends up in the log or on the web
page.
parent e4f564c7
......@@ -765,7 +765,11 @@ sub bw_test {
&my_system(PATH_PATHRATE_RCV, "-Q","-s",$edge->src,"-q","-N", PATHRATE_DAT);
} else {
&debug("Skipping bandwidth test for " . &print_link($edge) . "\n");
&info("*** Skipping bandwidth test for " .
&print_link($edge) . "\n");
&info("*** Bandwidth is out of range ".
"(" . LIMIT_BW_LO . " <= BW <= " . LIMIT_BW_HI .") ".
"or loss is too high (> " . LIMIT_BW_LOSS . ").\n");
}
}
}
......@@ -936,6 +940,13 @@ sub get_topo {
}
# Send an info message.
sub info {
my($msg) = @_;
&post_event(EVENT_REPORT, " " . $msg);
&sim_event(EVENT_LOG, " " . $msg);
}
# prints out the topology read in from the NS file
sub debug_top {
......
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