Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
fffd650c
Commit
fffd650c
authored
Feb 03, 2003
by
Leigh B. Stoller
Browse files
New status stuff, which use separate table now (node_status table).
parent
263f7641
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/newwanode.in
View file @
fffd650c
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
2
University of Utah and the Flux Group.
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -238,11 +238,15 @@ else {
print
"
Creating widearea node
$nodename
...
\n
";
DBQueryFatal
("
insert into nodes
"
.
"
(node_id, type, phys_nodeid, role, priority,
"
.
"
status,
op_mode, def_boot_osid)
"
.
"
op_mode, def_boot_osid)
"
.
"
values ('
$nodename
', '
$nodetype
', '
$nodename
',
"
.
"
'testnode',
$nextpri
,
'down',
'NORMAL',
"
.
"
'testnode',
$nextpri
, 'NORMAL',
"
.
"
'
$defosid
')
");
DBQueryFatal
("
replace into node_status
"
.
"
(node_id, status, status_timestamp)
"
.
"
values ('
$nodename
', 'down', now())
");
DBQueryFatal
("
insert into interfaces
"
.
"
(node_id, card, port, IP, interface_type, iface)
"
.
"
values ('
$nodename
',
$control_net
, 1, '
$nodeip
',
"
.
...
...
@@ -267,9 +271,9 @@ for ($i = 1; $i < 9; $i++) {
print
"
Creating widearea virtual node
$nodevname
...
\n
";
DBQueryFatal
("
insert into nodes
"
.
"
(node_id, type, phys_nodeid, role, priority,
"
.
"
status,
op_mode, def_boot_osid, update_accounts)
"
.
"
op_mode, def_boot_osid, update_accounts)
"
.
"
values ('
$nodevname
', '
$nodevtype
', '
$nodename
',
"
.
"
'virtnode',
$priority
,
'down',
'NORMAL',
"
.
"
'virtnode',
$priority
, 'NORMAL',
"
.
"
'
$defosid
', 1)
");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment