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
1cd7c55d
Commit
1cd7c55d
authored
Jul 18, 2009
by
Leigh B. Stoller
Browse files
Very temporary hack to cut down the number of nodes advertised
from the main site; only nodes with reserved_pid set.
parent
07e44d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ptopgen.in
View file @
1cd7c55d
...
...
@@ -56,6 +56,7 @@ my $genimode = 0;
my
$useshared
=
0
;
my
$OURDOMAIN
=
"
@OURDOMAIN
@
";
my
$MAINSITE
=
@TBMAINSITE@
;
my
$cmuuid
=
TBGetSiteVar
('
protogeni/cm_uuid
');
my
$cmurn
=
"";
if
(
$PGENISUPPORT
)
{
...
...
@@ -458,6 +459,11 @@ if ($useshared) {
# In genimode exclude nodes with exclusion attribute.
if
(
$genimode
)
{
$free_condition
=
"
(nat1.attrvalue is null or nat1.attrvalue=0)
";
if
(
$pid
&&
$MAINSITE
)
{
$free_condition
=
"
(
$free_condition
and
"
.
"
(np.reserved_pid is not null and np.reserved_pid='
$pid
'))
";
}
}
# If the user wants all nodes, we consider everything to be free (this
...
...
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