Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
8c60f479
Commit
8c60f479
authored
Mar 06, 2003
by
Shashi Guruprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added trivial_ok for links/lans that have only simulated nodes.
parent
790d580f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tbsetup/assign_wrapper.in
tbsetup/assign_wrapper.in
+10
-0
No files found.
tbsetup/assign_wrapper.in
View file @
8c60f479
...
...
@@ -493,6 +493,7 @@ foreach $lan (keys(%lans)) {
$simnodes
=
0
;
$realnodes
=
0
;
$emulated
=
0
;
$trivial_ok
=
0
;
foreach
$member
(
@members
)
{
(
$node
)
=
(
split
("
:
",
$member
))[
0
];
if
(
$nodes
{
$node
}
eq
"
shark-shelf
")
{
...
...
@@ -508,6 +509,9 @@ foreach $lan (keys(%lans)) {
$realnodes
++
;
}
}
if
(
$simnodes
>
0
&&
$realnodes
==
0
&&
$sharks
==
0
)
{
$trivial_ok
=
1
;
}
if
(
$#members
==
1
)
{
(
$nodeport0
,
$nodeport1
)
=
@members
;
$node0
=
(
split
("
:
",
$nodeport0
))[
0
];
...
...
@@ -592,6 +596,9 @@ foreach $lan (keys(%lans)) {
if
(
$emulated
)
{
print
TOPFILE
"
emulated
";
}
if
(
$trivial_ok
)
{
print
TOPFILE
"
trivial_ok
";
}
print
TOPFILE
"
\n
";
}
}
elsif
(
$#members
!=
0
)
{
...
...
@@ -673,6 +680,9 @@ foreach $lan (keys(%lans)) {
if
(
$emulated
)
{
print
TOPFILE
"
emulated
";
}
if
(
$trivial_ok
)
{
print
TOPFILE
"
trivial_ok
";
}
print
TOPFILE
"
\n
";
}
}
...
...
Write
Preview
Markdown
is supported
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