Jonathan Hart

Shut LinkDiscovery up

Change-Id: I59dbb008014969476c8180f7a2b09a78a69519a5
...@@ -90,7 +90,7 @@ public class LinkDiscovery implements TimerTask { ...@@ -90,7 +90,7 @@ public class LinkDiscovery implements TimerTask {
90 * Instantiates discovery manager for the given physical switch. Creates a 90 * Instantiates discovery manager for the given physical switch. Creates a
91 * generic LLDP packet that will be customized for the port it is sent out on. 91 * generic LLDP packet that will be customized for the port it is sent out on.
92 * Starts the the timer for the discovery process. 92 * Starts the the timer for the discovery process.
93 - * @param device the physical switch 93 + * @param device the physical switch
94 * @param masterService 94 * @param masterService
95 * @param useBDDP flag to also use BDDP for discovery 95 * @param useBDDP flag to also use BDDP for discovery
96 */ 96 */
...@@ -217,7 +217,7 @@ public class LinkDiscovery implements TimerTask { ...@@ -217,7 +217,7 @@ public class LinkDiscovery implements TimerTask {
217 final PortNumber srcPort = PortNumber.portNumber(onoslldp.getPort()); 217 final PortNumber srcPort = PortNumber.portNumber(onoslldp.getPort());
218 final DeviceId srcDeviceId = DeviceId.deviceId(onoslldp.getDeviceString()); 218 final DeviceId srcDeviceId = DeviceId.deviceId(onoslldp.getDeviceString());
219 final DeviceId dstDeviceId = context.inPacket().receivedFrom().deviceId(); 219 final DeviceId dstDeviceId = context.inPacket().receivedFrom().deviceId();
220 - this.ackProbe(srcPort.toLong()); 220 + this.ackProbe(dstPort.toLong());
221 ConnectPoint src = new ConnectPoint(srcDeviceId, srcPort); 221 ConnectPoint src = new ConnectPoint(srcDeviceId, srcPort);
222 ConnectPoint dst = new ConnectPoint(dstDeviceId, dstPort); 222 ConnectPoint dst = new ConnectPoint(dstDeviceId, dstPort);
223 223
...@@ -245,7 +245,7 @@ public class LinkDiscovery implements TimerTask { ...@@ -245,7 +245,7 @@ public class LinkDiscovery implements TimerTask {
245 */ 245 */
246 @Override 246 @Override
247 public void run(final Timeout t) { 247 public void run(final Timeout t) {
248 - this.log.debug("sending probes"); 248 + this.log.trace("sending probes");
249 synchronized (this) { 249 synchronized (this) {
250 final Iterator<Long> fastIterator = this.fastPorts.iterator(); 250 final Iterator<Long> fastIterator = this.fastPorts.iterator();
251 Long portNumber; 251 Long portNumber;
...@@ -256,7 +256,7 @@ public class LinkDiscovery implements TimerTask { ...@@ -256,7 +256,7 @@ public class LinkDiscovery implements TimerTask {
256 .getAndIncrement(); 256 .getAndIncrement();
257 257
258 if (probeCount < LinkDiscovery.MAX_PROBE_COUNT) { 258 if (probeCount < LinkDiscovery.MAX_PROBE_COUNT) {
259 - this.log.debug("sending fast probe to port"); 259 + this.log.trace("sending fast probe to port");
260 sendProbes(portNumber); 260 sendProbes(portNumber);
261 } else { 261 } else {
262 // Update fast and slow ports 262 // Update fast and slow ports
...@@ -278,7 +278,7 @@ public class LinkDiscovery implements TimerTask { ...@@ -278,7 +278,7 @@ public class LinkDiscovery implements TimerTask {
278 Iterator<Long> slowIterator = this.slowPorts.iterator(); 278 Iterator<Long> slowIterator = this.slowPorts.iterator();
279 while (slowIterator.hasNext()) { 279 while (slowIterator.hasNext()) {
280 portNumber = slowIterator.next(); 280 portNumber = slowIterator.next();
281 - this.log.debug("sending slow probe to port {}", portNumber); 281 + this.log.trace("sending slow probe to port {}", portNumber);
282 282
283 sendProbes(portNumber); 283 sendProbes(portNumber);
284 284
......