Skip to content
Snippets Groups Projects
Commit ce28542a authored by abat's avatar abat
Browse files

Merge into master from pull request #67:

Add a method to TopologyService (https://github.com/floodlight/floodlight/pull/67)
parents 6e76e0e1 508c65f0
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,15 @@ public interface ITopologyService extends IFloodlightService { ...@@ -43,6 +43,15 @@ public interface ITopologyService extends IFloodlightService {
public boolean isAllowed(long sw, short portId); 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 isIncomingBroadcastAllowed(long sw, short portId);
public boolean isInSameBroadcastDomain(long s1, short p1, long s2, short p2); public boolean isInSameBroadcastDomain(long s1, short p1, long s2, short p2);
......
...@@ -370,6 +370,11 @@ IRoutingService, ILinkDiscoveryListener { ...@@ -370,6 +370,11 @@ IRoutingService, ILinkDiscoveryListener {
return currentInstance.isAllowed(sw, portId); return currentInstance.isAllowed(sw, portId);
} }
@Override
public NodePortTuple getAllowedOutgoingBroadcastPort(NodePortTuple src, NodePortTuple dst) {
return null;
}
@Override @Override
public boolean isIncomingBroadcastAllowed(long sw, short portId) { public boolean isIncomingBroadcastAllowed(long sw, short portId) {
return currentInstance.isIncomingBroadcastAllowedOnSwitchPort(sw, 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