public interface LinkService
Services of this interface provide the ability to:
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(LinkListener listener)
Adds the specified link update listener.
|
void |
addToSuppressLLDPs(DataPathId dpid,
BigPortNumber port)
Adds the given <device,port> tuple to the list of suppressed
ports.
|
Set<Link> |
getAllLinks()
Returns all links discovered in the network.
|
Set<Link> |
getDeviceLinks(DataPathId dpid)
Returns all links emanating from the given datapath.
|
Set<ConnectionPoint> |
getDevicePoints(DataPathId dpid) |
List<DpSuppressedPorts> |
getDpSuppressedPorts()
Returns all <device,port>
suppressed ports tuples where LLDP exchange is suppressed. |
Set<ConnectionPoint> |
getSuppressLLDPsInfo()
Returns all <device,port>
connection point tuples where LLDP exchange is suppressed. |
boolean |
isInfraPort(ConnectionPoint cp)
Check if the given connection point is a infrastructure connection
point.
|
void |
removeFromSuppressLLDPs(DataPathId dpid,
BigPortNumber port)
Removes the given <device,port> tuple from the list of suppressed
ports which were previously added.
|
void |
removeListener(LinkListener listener)
Removes the specified link update listener.
|
Set<Link> getAllLinks()
Set<Link> getDeviceLinks(DataPathId dpid)
dpid - the datapath idboolean isInfraPort(ConnectionPoint cp)
cp - the connection pointSet<ConnectionPoint> getDevicePoints(DataPathId dpid)
Set<ConnectionPoint> getSuppressLLDPsInfo()
connection point tuples where LLDP exchange is suppressed.
Consumers of this API can inspect the ports on which LLDP exchange was withheld and subsequently the corresponding links were not learnt.
List<DpSuppressedPorts> getDpSuppressedPorts()
suppressed ports tuples where LLDP exchange is suppressed.
Consumers of this API can inspect the ports on which LLDP exchange was withheld and subsequently the corresponding links were not learnt.
void addToSuppressLLDPs(DataPathId dpid, BigPortNumber port)
Consumers of this API can instruct the ports on which LLDP exchange needs to be withheld and the corresponding link can be ignored.
dpid - the target datapathport - the switch port numberNullPointerException - if datapath ID or port is nullvoid removeFromSuppressLLDPs(DataPathId dpid, BigPortNumber port)
Consumers of this API can instruct the ports on which LLDP exchange needs to be revoked and the corresponding link needs to be learnt.
dpid - the controller learnt switch or datapathport - the switch port numberNullPointerException - if datapath ID or port is nullvoid addListener(LinkListener listener)
listener - the listener to be addedNullPointerException - if the listener is nullvoid removeListener(LinkListener listener)
listener - the listener to be removedNullPointerException - if the listener is nullCopyright © 2014. All Rights Reserved.