Skip to content
Snippets Groups Projects
Commit cfb56a7a authored by KC Wang's avatar KC Wang
Browse files

Merge branch 'master' of github.com:bigswitch/bigswitchcontroller into ECMP

parents 0c0c1293 d72f0bdb
No related branches found
No related tags found
No related merge requests found
......@@ -9,3 +9,4 @@ target
thrift
*.swp
*.pyc
findbugs-results
......@@ -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>
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment