Commit 0112b0d5 authored by Leigh Stoller's avatar Leigh Stoller

Remove "Create and OS Descriptor" link for non-admins. Mere users do

not ever need to create a OSID directly, so do not give them the link.
Will need a mechanism to allow this later for Eric and others with a
clue. Also add pointer to customos section of the tutorial at the top
of the page.
parent 179b3635
......@@ -62,11 +62,28 @@ SUBPAGESTART();
SUBMENUSTART("More Options");
WRITESUBMENUBUTTON("Create an Image Descriptor",
"newimageid_ez.php3");
WRITESUBMENUBUTTON("Create an OS Descriptor",
"newosid_form.php3");
if ($isadmin) {
WRITESUBMENUBUTTON("Create an OS Descriptor",
"newosid_form.php3");
}
WRITESUBMENUBUTTON("OS Descriptor list",
"showosid_list.php3");
SUBMENUEND();
echo "Listed below are the Images that you can load on your nodes with the
<a href='tutorial/docwrapper.php3?docname=nscommands.html#OS'>
<tt>tb-set-node-os</tt></a> directive. If the OS you have selected for
a node is not loaded on that node when the experiment is swapped in,
the Testbed system will automatically reload that node's disk with the
appropriate image. You might notice that it takes a few minutes longer
to start start your experiment when selecting an OS that is not
already resident. Please be patient.
<br>
More information on how to create your own Images is in the
<a href='tutorial/tutorial.php3#CustomOS'>Custom OS</a> section of
the <a href='tutorial/tutorial.php3'>Emulab Tutorial.</a>
<br>\n";
SUBPAGEEND();
if (mysql_num_rows($query_result)) {
......
......@@ -56,14 +56,15 @@ SUBPAGESTART();
SUBMENUSTART("More Options");
WRITESUBMENUBUTTON("Create an Image Descriptor",
"newimageid_ez.php3");
WRITESUBMENUBUTTON("Create an OS Descriptor",
"newosid_form.php3");
if ($isadmin) {
WRITESUBMENUBUTTON("Create an OS Descriptor",
"newosid_form.php3");
}
WRITESUBMENUBUTTON("Image Descriptor list",
"showimageid_list.php3");
SUBMENUEND();
echo "<p>
Listed below are the OS Descriptors that you may use in your NS file
echo "Listed below are the OS Descriptors that you may use in your NS file
with the <a href='tutorial/docwrapper.php3?docname=nscommands.html#OS'>
<tt>tb-set-node-os</tt></a> directive. If the OS you have selected for
a node is not loaded on that node when the experiment is swapped in,
......@@ -71,7 +72,11 @@ echo "<p>
appropriate image. You might notice that it takes a few minutes longer
to start start your experiment when selecting an OS that is not
already resident. Please be patient.
</p><br />\n";
<br>
More information on how to create your own Images is in the
<a href='tutorial/tutorial.php3#CustomOS'>Custom OS</a> section of
the <a href='tutorial/tutorial.php3'>Emulab Tutorial.</a>
<br>\n";
SUBPAGEEND();
......
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