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
cfb56a7a
Commit
cfb56a7a
authored
12 years ago
by
KC Wang
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:bigswitch/bigswitchcontroller into ECMP
parents
0c0c1293
d72f0bdb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
build.xml
+32
-0
32 additions, 0 deletions
build.xml
src/main/java/net/floodlightcontroller/devicemanager/internal/Device.java
+8
-5
8 additions, 5 deletions
...t/floodlightcontroller/devicemanager/internal/Device.java
with
41 additions
and
5 deletions
.gitignore
+
1
−
0
View file @
cfb56a7a
...
...
@@ -9,3 +9,4 @@ target
thrift
*.swp
*.pyc
findbugs-results
This diff is collapsed.
Click to expand it.
build.xml
+
32
−
0
View file @
cfb56a7a
...
...
@@ -46,6 +46,8 @@
<property
name=
"thrift.package"
value=
"net/floodlightcontroller/packetstreamer/thrift"
/>
<property
name=
"ant.build.javac.source"
value=
"1.6"
/>
<property
name=
"ant.build.javac.target"
value=
"1.6"
/>
<property
name=
"findbugs.home"
value=
"../build/findbugs-2.0.2"
/>
<property
name=
"findbugs.results"
value=
"findbugs-results"
/>
<property
name=
"lib"
location=
"lib"
/>
<patternset
id=
"lib"
>
...
...
@@ -276,4 +278,34 @@
</exec>
</target>
<target
name=
"findbugs-xml"
depends=
"init,compile"
>
<taskdef
name=
"findbugs"
classname=
"edu.umd.cs.findbugs.anttask.FindBugsTask"
classpath=
"${findbugs.home}/lib/findbugs-ant.jar"
/>
<mkdir
dir=
"${findbugs.results}"
/>
<findbugs
home=
"${findbugs.home}"
output=
"xml"
outputFile=
"${findbugs.results}/results.xml"
>
<sourcePath
path=
"${source}"
/>
<sourcePath
path=
"${thrift.out.dir}"
/>
<class
location=
"${build}"
/>
<auxClasspath>
<path
refid=
"classpath"
/>
</auxClasspath>
</findbugs>
</target>
<target
name=
"findbugs"
depends=
"init,compile"
>
<taskdef
name=
"findbugs"
classname=
"edu.umd.cs.findbugs.anttask.FindBugsTask"
classpath=
"${findbugs.home}/lib/findbugs-ant.jar"
/>
<mkdir
dir=
"${findbugs.results}"
/>
<findbugs
home=
"${findbugs.home}"
output=
"html"
outputFile=
"${findbugs.results}/results.html"
>
<sourcePath
path=
"${source}"
/>
<sourcePath
path=
"${thrift.out.dir}"
/>
<class
location=
"${build}"
/>
<auxClasspath>
<path
refid=
"classpath"
/>
</auxClasspath>
</findbugs>
</target>
</project>
This diff is collapsed.
Click to expand it.
src/main/java/net/floodlightcontroller/devicemanager/internal/Device.java
+
8
−
5
View file @
cfb56a7a
...
...
@@ -458,11 +458,14 @@ entity.getLastSeenTimestamp().getTime());
}
else
if
(
oldAPFlag
)
{
// retain oldAP as is. Put the newAP in oldAPs for flagging
// possible duplicates.
oldAPList
=
new
ArrayList
<
AttachmentPoint
>();
if
(
oldAPs
!=
null
)
oldAPList
.
addAll
(
oldAPs
);
// Add ot oldAPList only if it was picked up from the oldAPList
oldAPList
.
add
(
newAP
);
this
.
oldAPs
=
oldAPList
;
oldAPList
=
new
ArrayList
<
AttachmentPoint
>();
if
(
oldAPs
!=
null
)
oldAPList
.
addAll
(
oldAPs
);
// Add to oldAPList only if it was picked up from the oldAPList
oldAPList
.
add
(
newAP
);
this
.
oldAPs
=
oldAPList
;
if
(!
topology
.
isInSameBroadcastDomain
(
oldAP
.
getSw
(),
oldAP
.
getPort
(),
newAP
.
getSw
(),
newAP
.
getPort
()))
return
true
;
// attachment point changed.
}
return
false
;
}
...
...
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