Skip to content
GitLab
Menu
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
973cb882
Commit
973cb882
authored
Jun 27, 2012
by
Leigh B Stoller
Browse files
Remove hardwired vtype for pcfast, and use the global_vtypes
table instead.
parent
69bfe81b
Changes
1
Show whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
973cb882
...
...
@@ -735,12 +735,23 @@ sub GetTicketAuxAux($$$$$$$$$)
$virtexperiment->allowfixnode(0);
$virtexperiment->multiplex_factor(10);
if ($MAINSITE) {
#
# Add global vtypes.
#
my $vtypes_result =
emdb::DBQueryWarn("select * from global_vtypes");
if (!$vtypes_result) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR);
goto bad;
}
while (my $row = $vtypes_result->fetchrow_hashref()) {
$virtexperiment->NewTableRow("virt_vtypes",
{"name" => "pcfast",
"members" => "pc3000 d710",
"weight" => 0.5});
{"name" => $row->{'
vtype
'},
"members" => $row->{'
types
'},
"weight" => $row->{'
weight
'}
});
}
# Need to move this someplace else; the parser adds a bunch.
$virtexperiment->NewTableRow("virt_agents",
{"vnode" => "*",
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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