public interface ITopologyService extends IService
OFMTopologyManager
should implement.Modifier and Type | Method and Description |
---|---|
void |
addListener(ITopologyListener listener) |
NodePortTuple |
getAllowedIncomingBroadcastPort(long src,
short 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,
short srcPort,
boolean tunnelEnabled) |
NodePortTuple |
getAllowedOutgoingBroadcastPort(long src,
short srcPort,
long dst,
short dstPort)
If the dst is not allowed by the higher-level topology,
this method provides the topologically equivalent broadcast port.
|
NodePortTuple |
getAllowedOutgoingBroadcastPort(long src,
short srcPort,
long dst,
short 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.Short> |
getBroadcastPorts(long targetSw,
long src,
short srcPort)
Get broadcast ports on a target switch for a given attachmentpoint
point port.
|
java.util.Set<java.lang.Short> |
getBroadcastPorts(long targetSw,
long src,
short srcPort,
boolean tunnelEnabled) |
NodePortTuple |
getIncomingSwitchPort(long src,
short srcPort,
long dst,
short dstPort) |
NodePortTuple |
getIncomingSwitchPort(long src,
short srcPort,
long dst,
short 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.List<ILinkDiscoveryListener.LDUpdate> |
getLastLinkUpdates()
ITopologyListener provides topologyChanged notification,
but not *what* the changes were.
|
java.util.Date |
getLastUpdateTime() |
long |
getOpenflowDomainId(long switchId) |
long |
getOpenflowDomainId(long switchId,
boolean tunnelEnabled) |
NodePortTuple |
getOutgoingSwitchPort(long src,
short srcPort,
long dst,
short dstPort)
Get the proper outgoing switchport for a given pair of src-dst
switchports.
|
NodePortTuple |
getOutgoingSwitchPort(long src,
short srcPort,
long dst,
short dstPort,
boolean tunnelEnabled) |
java.util.Set<java.lang.Integer> |
getPorts(long sw)
Switch methods
|
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<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,
short portId) |
boolean |
isAllowed(long sw,
short portId,
boolean tunnelEnabled) |
boolean |
isAttachmentPointPort(long switchid,
short port)
Query to determine if devices must be learned on a given switch port.
|
boolean |
isAttachmentPointPort(long switchid,
short port,
boolean tunnelEnabled) |
boolean |
isBroadcastDomainPort(long sw,
short port) |
boolean |
isBroadcastDomainPort(long sw,
short port,
boolean tunnelEnabled) |
boolean |
isConsistent(long oldSw,
short oldPort,
long newSw,
short 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,
short oldPort,
long newSw,
short newPort,
boolean tunnelEnabled) |
boolean |
isIncomingBroadcastAllowed(long sw,
short portId) |
boolean |
isIncomingBroadcastAllowed(long sw,
short portId,
boolean tunnelEnabled) |
boolean |
isInSameBroadcastDomain(long s1,
short p1,
long s2,
short p2)
Indicates if the two switch ports are connected to the same
broadcast domain or not.
|
boolean |
isInSameBroadcastDomain(long s1,
short p1,
long s2,
short p2,
boolean tunnelEnabled) |
void addListener(ITopologyListener listener)
java.util.Date getLastUpdateTime()
boolean isAttachmentPointPort(long switchid, short port)
boolean isAttachmentPointPort(long switchid, short 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 formlong getL2DomainId(long switchId, boolean tunnelEnabled)
boolean inSameOpenflowDomain(long switch1, long switch2)
switch1
- switch2
- boolean inSameOpenflowDomain(long switch1, long switch2, boolean tunnelEnabled)
boolean inSameL2Domain(long switch1, long switch2)
switch1
- switch2
- boolean inSameL2Domain(long switch1, long switch2, boolean tunnelEnabled)
boolean isBroadcastDomainPort(long sw, short port)
boolean isBroadcastDomainPort(long sw, short port, boolean tunnelEnabled)
boolean isAllowed(long sw, short portId)
boolean isAllowed(long sw, short portId, boolean tunnelEnabled)
boolean isConsistent(long oldSw, short oldPort, long newSw, short newPort)
boolean isConsistent(long oldSw, short oldPort, long newSw, short newPort, boolean tunnelEnabled)
boolean isInSameBroadcastDomain(long s1, short p1, long s2, short p2)
s1
- p1
- s2
- p2
- boolean isInSameBroadcastDomain(long s1, short p1, long s2, short p2, boolean tunnelEnabled)
java.util.Set<java.lang.Integer> getPortsWithLinks(long sw)
sw
- The switch DPID in longjava.util.Set<java.lang.Integer> getPortsWithLinks(long sw, boolean tunnelEnabled)
java.util.Set<java.lang.Short> getBroadcastPorts(long targetSw, long src, short srcPort)
java.util.Set<java.lang.Short> getBroadcastPorts(long targetSw, long src, short srcPort, boolean tunnelEnabled)
boolean isIncomingBroadcastAllowed(long sw, short portId)
boolean isIncomingBroadcastAllowed(long sw, short portId, boolean tunnelEnabled)
NodePortTuple getOutgoingSwitchPort(long src, short srcPort, long dst, short dstPort)
NodePortTuple getOutgoingSwitchPort(long src, short srcPort, long dst, short dstPort, boolean tunnelEnabled)
NodePortTuple getIncomingSwitchPort(long src, short srcPort, long dst, short dstPort)
NodePortTuple getIncomingSwitchPort(long src, short srcPort, long dst, short dstPort, boolean tunnelEnabled)
NodePortTuple getAllowedOutgoingBroadcastPort(long src, short srcPort, long dst, short dstPort)
src
- dst
- NodePortTuple getAllowedOutgoingBroadcastPort(long src, short srcPort, long dst, short dstPort, boolean tunnelEnabled)
NodePortTuple getAllowedIncomingBroadcastPort(long src, short srcPort)
src
- srcPort
- NodePortTuple getAllowedIncomingBroadcastPort(long src, short srcPort, boolean tunnelEnabled)
java.util.Set<NodePortTuple> getBroadcastDomainPorts()
java.util.Set<NodePortTuple> getTunnelPorts()
java.util.Set<NodePortTuple> getBlockedPorts()
java.util.List<ILinkDiscoveryListener.LDUpdate> getLastLinkUpdates()
java.util.Set<java.lang.Integer> getPorts(long sw)