Commit 7de8577f authored by Leigh B Stoller's avatar Leigh B Stoller

Add Clemson to list for short/long datasets.

parent 460d1cc6
......@@ -135,7 +135,9 @@ sub ValidBlockstoreBackend($)
my ($domain,$subauth) = split(":", $authority);
return 1
if ($domain eq "emulab.net" || $domain eq "apt.emulab.net");
if ($domain eq "emulab.net" ||
$domain eq "apt.emulab.net" ||
$domain eq "clemson.cloudlab.us");
return 0;
}
......
......@@ -217,8 +217,7 @@ sub DoCreate()
$aggregate_urn = $aggregate->aggregate_urn();
}
else {
if ($aggregate_urn ne "urn:publicid:IDN+apt.emulab.net+authority+cm" &&
$aggregate_urn ne "urn:publicid:IDN+emulab.net+authority+cm") {
if (!APT_Dataset::ValidBlockstoreBackend($aggregate_urn)) {
fatal("Invalid cluster selection");
}
}
......
......@@ -99,6 +99,7 @@ function SPITFORM($formfields, $errors)
$amlist = array();
$amlist["urn:publicid:IDN+apt.emulab.net+authority+cm"] = "APT";
$amlist["urn:publicid:IDN+emulab.net+authority+cm"] = "Emulab";
$amlist["urn:publicid:IDN+clemson.cloudlab.us+authority+cm"] = "Clemson";
echo "<script type='text/plain' id='amlist-json'>\n";
echo htmlentities(json_encode($amlist));
echo "</script>\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