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
fa289d46
Commit
fa289d46
authored
Jun 25, 2004
by
Leigh B. Stoller
Browse files
When releasing a node, set the current_speed=0 on its experimental
interfaces.
parent
0ad704cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/nfree.in
View file @
fa289d46
...
...
@@ -270,13 +270,14 @@ foreach my $n (@freed_nodes) {
if
(
!
(
$n
=~
/sh\d+/
))
{
# Its not a shark, so clean out all IPs except the control net.
DBQueryWarn
("
update interfaces set IP='',IPaliases=NULL,mask=NULL,
"
.
"
rtabid='0',vnode_id=NULL
"
.
"
rtabid='0',vnode_id=NULL
,current_speed='0'
"
.
"
where node_id='
$n
' and
"
.
"
role='
"
.
TBDB_IFACEROLE_EXPERIMENT
()
.
"
'
")
||
$error
++
;
}
else
{
# XXX Shark Hack!
DBQueryWarn
("
update interfaces set IPalias='',rtabid='0',vnode_id=NULL
"
.
DBQueryWarn
("
update interfaces set IPalias='',rtabid='0',
"
.
"
vnode_id=NULL
"
.
"
where node_id='
$n
'
")
||
$error
++
;
}
...
...
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