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
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
b6800b6b
Commit
b6800b6b
authored
Sep 25, 2008
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes for dealing with widearea switches and wires for Geni.
parent
76263890
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
tbsetup/ptopgen.in
tbsetup/ptopgen.in
+11
-2
No files found.
tbsetup/ptopgen.in
View file @
b6800b6b
...
...
@@ -299,7 +299,8 @@ if (defined($switchtouse)) {
}
else
{
$result
=
DBQueryFatal
("
select node_id from nodes where role =
\"
testswitch
\"
");
DBQueryFatal
("
select node_id from nodes
"
.
"
where role='testswitch' or role='widearea_switch'
");
while
((
$switch
)
=
$result
->
fetchrow_array
)
{
print
"
node
$switch
switch:1 *lan:*
\n
";
...
...
@@ -783,6 +784,9 @@ if ($widearea) {
"
100000 0 0 1
"
.
join
("
",
@inet_protos
)
.
"
\n
";
}
# Insert into nodes array in case there are wires entries.
$nodes
{
$physnode
}
=
$ptype
;
}
}
...
...
@@ -839,6 +843,7 @@ while (($node1,$card1,$port1,$node2,$card2,$port2) =
$result
->
fetchrow_array
)
{
if
((
defined
(
$nodes
{
$node1
})
||
defined
(
$switches
{
$node1
}))
&&
(
defined
(
$nodes
{
$node2
})
||
defined
(
$switches
{
$node2
})))
{
# Types for this link - for the time being, we assume that all
# links are Ethernet, though this will certaily change later.
...
...
@@ -987,9 +992,13 @@ foreach my $interface (keys(%interfacetypes)) {
my
(
$node
,
$card
,
$port
)
=
split
("
:
",
$interface
);
next
if
(
!
defined
(
$nodes
{
$node
}))
;
if
(
!
defined
(
$nodes
{
$node
}));
;
my
$type
=
$interfacetypes
{
$interface
};
next
if
(
!
defined
(
$interfaceprotocols
{
$type
}));
my
@protos
=
@
{
$interfaceprotocols
{
$type
}
};
my
$iface
=
get_iface
(
$node
,
$card
,
$port
);
...
...
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