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

Refactoring of how isAttachmentPointPort() and isInternalToOpenflowDomain() are implemented.

parent 64822284
No related branches found
No related tags found
No related merge requests found
......@@ -622,13 +622,13 @@ public class TopologyInstance {
//
protected boolean isInternalToOpenflowDomain(long switchid, short port) {
NodePortTuple npt = new NodePortTuple(switchid, port);
if (switchPortLinks.containsKey(npt)) return true;
return false;
return !isAttachmentPointPort(switchid, port);
}
public boolean isAttachmentPointPort(long switchid, short port) {
return !isInternalToOpenflowDomain(switchid, port);
NodePortTuple npt = new NodePortTuple(switchid, port);
if (switchPortLinks.containsKey(npt)) return false;
return true;
}
protected long getOpenflowDomainId(long switchId) {
......
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