Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
5e6333f1
Commit
5e6333f1
authored
Aug 22, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace card,port with iface.
parent
fd87aaa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tbsetup/elabinelab.in
tbsetup/elabinelab.in
+3
-4
No files found.
tbsetup/elabinelab.in
View file @
5e6333f1
...
...
@@ -1024,13 +1024,12 @@ sub DumpDBGoo()
# But we need to take out the wires that are being used as the
# inner control network, or at least mark them as Control.
$query_result
=
DBQueryWarn
("
select node_id,
card,port
from temp_interfaces
"
.
DBQueryWarn
("
select node_id,
iface
from temp_interfaces
"
.
"
where role='
"
.
TBDB_IFACEROLE_CONTROL
()
.
"
'
");
while
(
my
(
$node_id
,
$
card
,
$port
)
=
$query_result
->
fetchrow_array
())
{
while
(
my
(
$node_id
,
$
iface
)
=
$query_result
->
fetchrow_array
())
{
DBQueryWarn
("
update temp_wires set type='Control'
"
.
"
where node_id1='
$node_id
' and card1=
$card
and
"
.
"
port1=
$port
");
"
where node_id1='
$node_id
' iface1='
$iface1
'
");
}
}
# Okay, now add the "trunk" wires in without any alteration.
...
...
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