Skip to content
Snippets Groups Projects
Commit 508c65f0 authored by Kanzhe Jiang's avatar Kanzhe Jiang
Browse files

Topology service can provide alternative broadcast port given a src/dst pair

parent 8c8d6d8c
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,15 @@ public interface ITopologyService extends IFloodlightService {
public boolean isAllowed(long sw, short portId);
/**
* If the dst is not allowed by the higher-level topology, this method provides
* the topologically equivalent broadcast port.
* @param src
* @param dst
* @return the allowed broadcast port
*/
public NodePortTuple getAllowedOutgoingBroadcastPort(NodePortTuple src, NodePortTuple dst);
public boolean isIncomingBroadcastAllowed(long sw, short portId);
public boolean isInSameBroadcastDomain(long s1, short p1, long s2, short p2);
......
......@@ -370,6 +370,11 @@ IRoutingService, ILinkDiscoveryListener {
return currentInstance.isAllowed(sw, portId);
}
@Override
public NodePortTuple getAllowedOutgoingBroadcastPort(NodePortTuple src, NodePortTuple dst) {
return null;
}
@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