Commit 072ce3c8 authored by Kirk Webb's avatar Kirk Webb
Browse files

Small change to insertion of PLAB nodes into the DB. We no longer classify

the plab vnodes according to link type (they are all of generic "pcplab"
type and class now), but add the linktype to the node_auxtypes field.  This
data in this table is then used to tell assign what kinds of types/roles the
node can take on.
parent 93894371
......@@ -404,7 +404,7 @@ class Plab:
" values (%s, %s, now())",
(nodeid, 'up'))
vnodetype = "pcplab%s" % linktype
vnodetype = "pcplab" # %s" % linktype
for n in range(numvnodes):
vprio = (priority * 100) + (n+1)
sshdport = 38000+(n+1)
......@@ -424,6 +424,11 @@ class Plab:
'FREE_CLEAN',
'SHUTDOWN', sshdport))
DBQueryFatal("insert into node_auxtypes"
" (node_id, type, count)"
" values (%s, %s, %s)",
(vnodeid, linktype, 1))
DBQueryFatal("insert into node_status"
" (node_id, status, status_timestamp)"
" values (%s, %s, now())",
......
Supports Markdown
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