Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
9f24d71e
Commit
9f24d71e
authored
12 years ago
by
Saurav Das
Browse files
Options
Downloads
Patches
Plain Diff
fix for failing tests regarding host moved
parent
41fc314f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/devicemanager/internal/Device.java
+5
-3
5 additions, 3 deletions
...t/floodlightcontroller/devicemanager/internal/Device.java
with
5 additions
and
3 deletions
src/main/java/net/floodlightcontroller/devicemanager/internal/Device.java
+
5
−
3
View file @
9f24d71e
...
...
@@ -418,9 +418,11 @@ public class Device implements IDevice {
if
(
apMap
==
null
||
apMap
.
isEmpty
())
{
apList
.
add
(
newAP
);
attachmentPoints
=
apList
;
// there are no old attachment points - we should not treat this
// as a device moved.
return
false
;
// there are no old attachment points - since the device exists, this
// may be because the host really moved (so the old AP port went down);
// or it may be because the switch restarted (so old APs were nullified).
// For now we will treat both cases as host moved.
return
true
;
}
long
id
=
topology
.
getL2DomainId
(
sw
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment