Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
d55a2b0e
Commit
d55a2b0e
authored
Jan 08, 2002
by
Christopher Alfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtype stuff.
parent
c6217b1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
tbsetup/assign_wrapper.in
tbsetup/assign_wrapper.in
+14
-0
No files found.
tbsetup/assign_wrapper.in
View file @
d55a2b0e
...
@@ -137,6 +137,7 @@ sub printdb {
...
@@ -137,6 +137,7 @@ sub printdb {
# be inserted.
# be inserted.
# fixed_nodes is indexed by virtual node name and points to physical node
# fixed_nodes is indexed by virtual node name and points to physical node
# name.
# name.
# vtypes is indexed by vtype name and is a list of {weight types}.
#
#
# Delay node names:
# Delay node names:
# delay nodes are named tbdelayXX N > 2
# delay nodes are named tbdelayXX N > 2
...
@@ -258,6 +259,15 @@ foreach $lan (keys(%lans)) {
...
@@ -258,6 +259,15 @@ foreach $lan (keys(%lans)) {
}
}
# End shark hack
# End shark hack
# Load virt types
printdb
"
Loading virt_vtypes.
\n
";
$result
=
DBQueryFatal
("
SELECT name,weight,members from virt_vtypes
"
.
"
where pid=
\"
$pid
\"
and eid=
\"
$eid
\"
");
while
((
$name
,
$weight
,
$types
)
=
$result
->
fetchrow_array
)
{
printdb
"
$name
$weight
$types
\n
";
$vtypes
{
$name
}
=
"
$weight
$types
";
}
# Open the TOP file
# Open the TOP file
$topfile
=
"
$eid
.top
";
$topfile
=
"
$eid
.top
";
open
(
TOPFILE
,"
>
$topfile
")
||
do
{
open
(
TOPFILE
,"
>
$topfile
")
||
do
{
...
@@ -265,6 +275,10 @@ open(TOPFILE,"> $topfile") || do {
...
@@ -265,6 +275,10 @@ open(TOPFILE,"> $topfile") || do {
exit
(
1
);
exit
(
1
);
};
};
# Print out vtypes
foreach
$vtype
(
keys
(
%vtypes
))
{
print
TOPFILE
"
make-vclass
$vtype
$vtypes
{
$vtype
}
\n
";
}
$nodes
=
0
;
$nodes
=
0
;
$delaynodes
=
0
;
$delaynodes
=
0
;
...
...
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