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

Interface methods for getting outgoing broadcast ports from a between two switch port tuples.

parent ce28542a
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,10 @@ public interface ITopologyService extends IFloodlightService {
* @param dst
* @return the allowed broadcast port
*/
public NodePortTuple getAllowedOutgoingBroadcastPort(NodePortTuple src, NodePortTuple dst);
public NodePortTuple getAllowedOutgoingBroadcastPort(long src,
short srcPort,
long dst,
short dstPort);
public boolean isIncomingBroadcastAllowed(long sw, short portId);
......
......@@ -564,4 +564,11 @@ public class TopologyInstance {
}
return result;
}
public NodePortTuple
getAllowedOutgoingBroadcastPort(long src, short srcPort, long dst,
short dstPort) {
// TODO Auto-generated method stub
return null;
}
}
......@@ -371,10 +371,14 @@ IRoutingService, ILinkDiscoveryListener {
}
@Override
public NodePortTuple getAllowedOutgoingBroadcastPort(NodePortTuple src, NodePortTuple dst) {
return null;
public NodePortTuple getAllowedOutgoingBroadcastPort(long src,
short srcPort,
long dst,
short dstPort) {
return currentInstance.getAllowedOutgoingBroadcastPort(src,srcPort,
dst,dstPort);
}
@Override
public boolean isIncomingBroadcastAllowed(long sw, short portId) {
return currentInstance.isIncomingBroadcastAllowedOnSwitchPort(sw, portId);
......
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