Skip to content
Snippets Groups Projects
Commit 642846b6 authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Update device manager to handle consistent attachment points to properly...

Update device manager to handle consistent attachment points to properly handle duplicate device flagging.
parent 29988d74
No related branches found
No related tags found
No related merge requests found
......@@ -259,13 +259,17 @@ public class Device implements IDevice {
Long dpid = cur.getSwitchDPID();
Integer port = cur.getSwitchPort();
if (dpid == null || port == null ||
!deviceManager.isValidAttachmentPoint(dpid, port))
/*||
(prev != null && topology.isConsistent(prev.getSwitchDPID().longValue(),
!deviceManager.isValidAttachmentPoint(dpid, port) ||
///*||
(prev != null &&
//topology.isBroadcastDomainPort(prev.getSwitchDPID().longValue(),
// prev.getSwitchPort().shortValue()) == false &&
topology.isBroadcastDomainPort(dpid.longValue(), port.shortValue()) &&
topology.isConsistent(prev.getSwitchDPID().longValue(),
prev.getSwitchPort().shortValue(),
dpid.longValue(),
port.shortValue()))
)*/
)//*/
continue;
long curCluster =
topology.getL2DomainId(cur.switchDPID);
......@@ -278,7 +282,7 @@ public class Device implements IDevice {
clusterBlocked.clear();
}
}
if (prev != null &&
!(dpid.equals(prev.getSwitchDPID()) &&
port.equals(prev.getSwitchPort())) &&
......
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