Skip to content
Snippets Groups Projects
Commit c7c7438d authored by Ryan Izard's avatar Ryan Izard
Browse files

Make NPT members private and refactor impacted unit test.

parent e6688d09
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,8 @@ import org.projectfloodlight.openflow.types.OFPort;
*/
public class NodePortTuple implements Comparable<NodePortTuple> {
protected DatapathId nodeId; // switch DPID
protected OFPort portId; // switch port id
private DatapathId nodeId; // switch DPID
private OFPort portId; // switch port id
/**
* Creates a NodePortTuple
......
......@@ -135,7 +135,7 @@ public class TopologyInstanceTest {
expected.add(npt);
}
TopologyInstance ti = topologyManager.getCurrentInstance(tunnelsEnabled);
Set<NodePortTuple> computed = ti.getBroadcastNodePortsInCluster(npt.nodeId);
Set<NodePortTuple> computed = ti.getBroadcastNodePortsInCluster(npt.getNodeId());
log.info("computed: {}", computed);
if (computed != null)
assertTrue(computed.equals(expected));
......
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