Commit 8c60f479 authored by Shashi Guruprasad's avatar Shashi Guruprasad

Added trivial_ok for links/lans that have only simulated nodes.

parent 790d580f
......@@ -493,6 +493,7 @@ foreach $lan (keys(%lans)) {
$simnodes = 0;
$realnodes = 0;
$emulated = 0;
$trivial_ok = 0;
foreach $member (@members) {
($node) = (split(":",$member))[0];
if ($nodes{$node} eq "shark-shelf") {
......@@ -508,6 +509,9 @@ foreach $lan (keys(%lans)) {
$realnodes++;
}
}
if ($simnodes > 0 && $realnodes == 0 && $sharks == 0) {
$trivial_ok = 1;
}
if ($#members == 1) {
($nodeport0,$nodeport1) = @members;
$node0 = (split(":",$nodeport0))[0];
......@@ -592,6 +596,9 @@ foreach $lan (keys(%lans)) {
if ($emulated) {
print TOPFILE " emulated";
}
if ($trivial_ok) {
print TOPFILE " trivial_ok";
}
print TOPFILE "\n";
}
} elsif ($#members != 0) {
......@@ -673,6 +680,9 @@ foreach $lan (keys(%lans)) {
if ($emulated) {
print TOPFILE " emulated";
}
if ($trivial_ok) {
print TOPFILE " trivial_ok";
}
print TOPFILE "\n";
}
}
......
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