Commit 1c722709 authored by Robert Ricci's avatar Robert Ricci
Browse files

Hardcode some information for ops nodes (class, osid).

parent da470edb
...@@ -103,15 +103,21 @@ function guess_node_type($proc,$disk) { ...@@ -103,15 +103,21 @@ function guess_node_type($proc,$disk) {
# Create a new node type # Create a new node type
# XXX - Right now, this is really only meant for inserting a node_types entry # XXX - Right now, this is really only meant for inserting a node_types entry
# for ops. It misses doing a lot of important things, like setting the class and # for ops. It misses doing a lot of important things, like setting the class and
# default OSID for this type. # default OSID for types other than ops
# #
function make_node_type($type,$proc,$disk) { function make_node_type($type,$proc,$disk) {
# #
# Just insert a stub entry for this type # Just insert a stub entry for this type
# #
DBQueryFatal("insert into node_types set type='$type', speed='$speed', $class = "";
HD='$disk';"); $defosid = "";
if (!strcmp($type,"ops")) {
$class = "misc";
$defosid = "emulab-ops-OPSNODE-BSD";
}
DBQueryFatal("insert into node_types set type='$type', speed='$speed', " .
"HD='$disk', class='$class', osid='$defosid';");
} }
......
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