public interface ILinkDiscoveryService extends IFloodlightService
Modifier and Type | Method and Description |
---|---|
void |
addListener(ILinkDiscoveryListener listener)
Adds a listener to listen for ILinkDiscoveryService messages
|
void |
addMACToIgnoreList(org.projectfloodlight.openflow.types.MacAddress mac,
int ignoreBits)
addMACToIgnoreList is a service provided by LinkDiscovery to ignore
certain packets early in the packet-in processing chain.
|
void |
AddToSuppressLLDPs(org.projectfloodlight.openflow.types.DatapathId sw,
org.projectfloodlight.openflow.types.OFPort port)
Adds a switch port to suppress lldp set.
|
org.projectfloodlight.openflow.protocol.OFPacketOut |
generateLLDPMessage(IOFSwitch iofSwitch,
org.projectfloodlight.openflow.types.OFPort port,
boolean isStandard,
boolean isReverse)
Returns OFPacketOut which contains the LLDP data corresponding
to switchport (sw, port).
|
LinkInfo |
getLinkInfo(Link link)
Retrieves the link info for a given link
|
java.util.Map<Link,LinkInfo> |
getLinks()
Retrieves a map of all known link connections between OpenFlow switches
and the associated info (valid time, port states) for the link.
|
ILinkDiscovery.LinkType |
getLinkType(Link lt,
LinkInfo info)
Returns link type of a given link
|
java.util.Map<NodePortTuple,java.util.Set<Link>> |
getPortLinks()
Get the map of node-port tuples from link DB
|
java.util.Set<org.projectfloodlight.openflow.types.OFPort> |
getQuarantinedPorts(org.projectfloodlight.openflow.types.DatapathId sw)
Get the set of quarantined ports on a switch
|
java.util.Set<NodePortTuple> |
getSuppressLLDPsInfo()
Retrieves a set of all switch ports on which lldps are suppressed.
|
java.util.Map<org.projectfloodlight.openflow.types.DatapathId,java.util.Set<Link>> |
getSwitchLinks()
Returns an unmodifiable map from switch id to a set of all links with it
as an endpoint.
|
boolean |
isAutoPortFastFeature()
Get the status of auto port fast feature.
|
boolean |
isTunnelPort(org.projectfloodlight.openflow.types.DatapathId sw,
org.projectfloodlight.openflow.types.OFPort port)
Returns if a given switchport is a tunnel endpoint or not
|
void |
RemoveFromSuppressLLDPs(org.projectfloodlight.openflow.types.DatapathId sw,
org.projectfloodlight.openflow.types.OFPort port)
Removes a switch port from suppress lldp set
|
void |
setAutoPortFastFeature(boolean autoPortFastFeature)
Set the state for auto port fast feature.
|
boolean isTunnelPort(org.projectfloodlight.openflow.types.DatapathId sw, org.projectfloodlight.openflow.types.OFPort port)
java.util.Map<Link,LinkInfo> getLinks()
LinkInfo getLinkInfo(Link link)
link
- link for which the link info should be returnedILinkDiscovery.LinkType getLinkType(Link lt, LinkInfo info)
info
- org.projectfloodlight.openflow.protocol.OFPacketOut generateLLDPMessage(IOFSwitch iofSwitch, org.projectfloodlight.openflow.types.OFPort port, boolean isStandard, boolean isReverse)
java.util.Map<org.projectfloodlight.openflow.types.DatapathId,java.util.Set<Link>> getSwitchLinks()
void addListener(ILinkDiscoveryListener listener)
listener
- The listener that wants the notificationsjava.util.Set<NodePortTuple> getSuppressLLDPsInfo()
void AddToSuppressLLDPs(org.projectfloodlight.openflow.types.DatapathId sw, org.projectfloodlight.openflow.types.OFPort port)
void RemoveFromSuppressLLDPs(org.projectfloodlight.openflow.types.DatapathId sw, org.projectfloodlight.openflow.types.OFPort port)
java.util.Set<org.projectfloodlight.openflow.types.OFPort> getQuarantinedPorts(org.projectfloodlight.openflow.types.DatapathId sw)
boolean isAutoPortFastFeature()
void setAutoPortFastFeature(boolean autoPortFastFeature)
autoPortFastFeature
- java.util.Map<NodePortTuple,java.util.Set<Link>> getPortLinks()
void addMACToIgnoreList(org.projectfloodlight.openflow.types.MacAddress mac, int ignoreBits)
mac
- The base MAC address that is to be ignoredignoreBits
- The number of LSBs to ignore. A value of 0 will add
only one MAC address 'mac' to ignore list. A value of 48 will add
ALL MAC addresses to the ignore list. This will cause a drop of
ALL packet ins.