|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITopologyService
Method Summary | |
---|---|
void |
addListener(ITopologyListener listener)
|
NodePortTuple |
getAllowedIncomingBroadcastPort(long src,
int srcPort)
If the src broadcast domain port is not allowed for incoming broadcast, this method provides the topologically equivalent incoming broadcast-allowed src port. |
NodePortTuple |
getAllowedIncomingBroadcastPort(long src,
int srcPort,
boolean tunnelEnabled)
|
NodePortTuple |
getAllowedOutgoingBroadcastPort(long src,
int srcPort,
long dst,
int dstPort)
If the dst is not allowed by the higher-level topology, this method provides the topologically equivalent broadcast port. |
NodePortTuple |
getAllowedOutgoingBroadcastPort(long src,
int srcPort,
long dst,
int dstPort,
boolean tunnelEnabled)
|
java.util.Set<NodePortTuple> |
getBlockedPorts()
Returns a set of blocked ports. |
java.util.Set<NodePortTuple> |
getBroadcastDomainPorts()
Gets the set of ports that belong to a broadcast domain. |
java.util.Set<java.lang.Integer> |
getBroadcastPorts(long targetSw,
long src,
int srcPort)
Get broadcast ports on a target switch for a given attachmentpoint point port. |
java.util.Set<java.lang.Integer> |
getBroadcastPorts(long targetSw,
long src,
int srcPort,
boolean tunnelEnabled)
|
NodePortTuple |
getIncomingSwitchPort(long src,
int srcPort,
long dst,
int dstPort)
|
NodePortTuple |
getIncomingSwitchPort(long src,
int srcPort,
long dst,
int dstPort,
boolean tunnelEnabled)
|
long |
getL2DomainId(long switchId)
Returns the identifier of the L2 domain of a given switch. |
long |
getL2DomainId(long switchId,
boolean tunnelEnabled)
|
java.util.Date |
getLastUpdateTime()
|
long |
getOpenflowDomainId(long switchId)
|
long |
getOpenflowDomainId(long switchId,
boolean tunnelEnabled)
|
NodePortTuple |
getOutgoingSwitchPort(long src,
int srcPort,
long dst,
int dstPort)
Get the proper outgoing switchport for a given pair of src-dst switchports. |
NodePortTuple |
getOutgoingSwitchPort(long src,
int srcPort,
long dst,
int dstPort,
boolean tunnelEnabled)
|
java.util.Set<java.lang.Integer> |
getPorts(long sw)
Returns the enabled, non quarantined ports of the given switch. |
java.util.Set<java.lang.Integer> |
getPortsWithLinks(long sw)
Gets a list of ports on a given switch that are known to topology. |
java.util.Set<java.lang.Integer> |
getPortsWithLinks(long sw,
boolean tunnelEnabled)
|
java.util.Set<java.lang.Long> |
getSwitchesInOpenflowDomain(long switchDPID)
|
java.util.Set<java.lang.Long> |
getSwitchesInOpenflowDomain(long switchDPID,
boolean tunnelEnabled)
|
java.util.Set<NodePortTuple> |
getTunnelPorts()
|
boolean |
inSameL2Domain(long switch1,
long switch2)
Queries whether two switches are in the same island. |
boolean |
inSameL2Domain(long switch1,
long switch2,
boolean tunnelEnabled)
|
boolean |
inSameOpenflowDomain(long switch1,
long switch2)
Queries whether two switches are in the same cluster. |
boolean |
inSameOpenflowDomain(long switch1,
long switch2,
boolean tunnelEnabled)
|
boolean |
isAllowed(long sw,
int portId)
|
boolean |
isAllowed(long sw,
int portId,
boolean tunnelEnabled)
|
boolean |
isAttachmentPointPort(long switchid,
int port)
Query to determine if devices must be learned on a given switch port. |
boolean |
isAttachmentPointPort(long switchid,
int port,
boolean tunnelEnabled)
|
boolean |
isBroadcastDomainPort(long sw,
int port)
|
boolean |
isBroadcastDomainPort(long sw,
int port,
boolean tunnelEnabled)
|
boolean |
isConsistent(long oldSw,
int oldPort,
long newSw,
int newPort)
Indicates if an attachment point on the new switch port is consistent with the attachment point on the old switch port or not. |
boolean |
isConsistent(long oldSw,
int oldPort,
long newSw,
int newPort,
boolean tunnelEnabled)
|
boolean |
isIncomingBroadcastAllowed(long sw,
int portId)
|
boolean |
isIncomingBroadcastAllowed(long sw,
int portId,
boolean tunnelEnabled)
|
boolean |
isInSameBroadcastDomain(long s1,
int p1,
long s2,
int p2)
Indicates if the two switch ports are connected to the same broadcast domain or not. |
boolean |
isInSameBroadcastDomain(long s1,
int p1,
long s2,
int p2,
boolean tunnelEnabled)
|
Method Detail |
---|
void addListener(ITopologyListener listener)
java.util.Date getLastUpdateTime()
boolean isAttachmentPointPort(long switchid, int port)
boolean isAttachmentPointPort(long switchid, int port, boolean tunnelEnabled)
long getOpenflowDomainId(long switchId)
long getOpenflowDomainId(long switchId, boolean tunnelEnabled)
long getL2DomainId(long switchId)
switchId
- The DPID of the switch in long form
long getL2DomainId(long switchId, boolean tunnelEnabled)
boolean inSameOpenflowDomain(long switch1, long switch2)
switch1
- switch2
-
boolean inSameOpenflowDomain(long switch1, long switch2, boolean tunnelEnabled)
java.util.Set<java.lang.Long> getSwitchesInOpenflowDomain(long switchDPID)
java.util.Set<java.lang.Long> getSwitchesInOpenflowDomain(long switchDPID, boolean tunnelEnabled)
boolean inSameL2Domain(long switch1, long switch2)
switch1
- switch2
-
boolean inSameL2Domain(long switch1, long switch2, boolean tunnelEnabled)
boolean isBroadcastDomainPort(long sw, int port)
boolean isBroadcastDomainPort(long sw, int port, boolean tunnelEnabled)
boolean isAllowed(long sw, int portId)
boolean isAllowed(long sw, int portId, boolean tunnelEnabled)
boolean isConsistent(long oldSw, int oldPort, long newSw, int newPort)
boolean isConsistent(long oldSw, int oldPort, long newSw, int newPort, boolean tunnelEnabled)
boolean isInSameBroadcastDomain(long s1, int p1, long s2, int p2)
s1
- p1
- s2
- p2
-
boolean isInSameBroadcastDomain(long s1, int p1, long s2, int p2, boolean tunnelEnabled)
java.util.Set<java.lang.Integer> getPortsWithLinks(long sw)
sw
- The switch DPID in long
java.util.Set<java.lang.Integer> getPortsWithLinks(long sw, boolean tunnelEnabled)
java.util.Set<java.lang.Integer> getBroadcastPorts(long targetSw, long src, int srcPort)
java.util.Set<java.lang.Integer> getBroadcastPorts(long targetSw, long src, int srcPort, boolean tunnelEnabled)
boolean isIncomingBroadcastAllowed(long sw, int portId)
boolean isIncomingBroadcastAllowed(long sw, int portId, boolean tunnelEnabled)
NodePortTuple getOutgoingSwitchPort(long src, int srcPort, long dst, int dstPort)
NodePortTuple getOutgoingSwitchPort(long src, int srcPort, long dst, int dstPort, boolean tunnelEnabled)
NodePortTuple getIncomingSwitchPort(long src, int srcPort, long dst, int dstPort)
NodePortTuple getIncomingSwitchPort(long src, int srcPort, long dst, int dstPort, boolean tunnelEnabled)
NodePortTuple getAllowedOutgoingBroadcastPort(long src, int srcPort, long dst, int dstPort)
src
- dst
-
NodePortTuple getAllowedOutgoingBroadcastPort(long src, int srcPort, long dst, int dstPort, boolean tunnelEnabled)
NodePortTuple getAllowedIncomingBroadcastPort(long src, int srcPort)
src
- dst
-
NodePortTuple getAllowedIncomingBroadcastPort(long src, int srcPort, boolean tunnelEnabled)
java.util.Set<NodePortTuple> getBroadcastDomainPorts()
java.util.Set<NodePortTuple> getTunnelPorts()
java.util.Set<NodePortTuple> getBlockedPorts()
java.util.Set<java.lang.Integer> getPorts(long sw)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |