Skip to content
Snippets Groups Projects
Commit 81c81e61 authored by Subrata Banerjee's avatar Subrata Banerjee
Browse files

Enhanced debug stmt for link removal event.

parent 81c08684
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ import java.util.PriorityQueue;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import org.openflow.protocol.OFPhysicalPort.OFPortState;
import org.openflow.util.HexString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -215,7 +216,15 @@ public class RoutingImpl implements IRoutingEngine, ITopologyAware {
else {
// Only remove if that link actually exists.
if (src.containsKey(srcLink)) {
log.debug("update: removed link: {}, {}", srcId, srcPort);
if (log.isDebugEnabled()) {
String temp = HexString.toHexString(srcId).concat("/");
temp = temp.concat(Integer.toString(srcPort));
temp = temp.concat("-->");
temp = temp.concat(HexString.toHexString(dstId));
temp = temp.concat("/");
temp = temp.concat(Integer.toString(dstPort));
log.debug("update: removed link: {}", temp);
}
src.remove(srcLink);
network_updated = true;
}
......
......@@ -23,7 +23,6 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
......
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