Commit 15a723de authored by Leigh B Stoller's avatar Leigh B Stoller

Add check for mixed <=1Gb and >1Gb and throw an error. This is enabled

for emulab-ops and testbed for some testing.
parent 68494081
......@@ -272,6 +272,10 @@ if (!defined($experiment)) {
}
my $project = $experiment->GetProject();
if ($pid eq "emulab-ops" || $pid eq "testbed") {
$gblinkcheck++;
}
#
# Verify that this person can muck with the experiment.
#
......@@ -390,6 +394,12 @@ sub MapperWrapper()
exit(0)
if ($clear && !$regression);
}
if (!$toponly && $gblinkcheck) {
if ($vtop->gblinks() && $vtop->mgblinks()) {
fatal("Not allowed to mix <=1Gb and >1Gb links");
}
}
AssignLoop();
return 0;
}
......
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