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
d51614da
Commit
d51614da
authored
Jun 04, 2004
by
Robert Ricci
Browse files
It's okay for an interface to not be attached to a switch if it's
wireless.
parent
5e5bea87
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/newnode.in
View file @
d51614da
...
...
@@ -208,29 +208,30 @@ NODE: foreach my $node_id (@node_ids) {
#
# Get some more information about this interface type
#
my
$iface_query
=
DBQueryFatal
("
SELECT max_speed, full_duplex
"
.
"
FROM interface_types WHERE type='
$iface_type
'
");
my
$iface_query
=
DBQueryFatal
("
SELECT max_speed, full_duplex
,
"
.
"
connector
FROM interface_types WHERE type='
$iface_type
'
");
if
(
!
$iface_query
->
num_rows
())
{
warn
"
Node
$node_id
failed: Interface
$card
is of unknown type
"
.
"
$iface_type
\n
";
next
NODE
;
}
my
(
$max_speed
,
$full_duplex
,
$connector
)
=
$iface_query
->
fetchrow
();
#
# Do a sanity check - make sure that we have a switch recorded for all
# experimental interfaces
#
unless
(
$force_unconnected_interfaces
)
{
my
$iface
=
"
eth
$card
";
if
((
$iface
ne
$control_iface
)
&&
!
$switch_id
)
{
if
((
$iface
ne
$control_iface
)
&&
(
$connector
!~
/wireless/i
)
&&
!
$switch_id
)
{
warn
"
Node
$node_id
failed: Don't know which switch
"
.
"
card
$iface
is connected to
\n
";
next
NODE
;
}
}
my
(
$max_speed
,
$full_duplex
)
=
$iface_query
->
fetchrow
();
#
# Stash it away...
#
...
...
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