public interface PcepController
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkListener(PcepLinkListener listener)
Register a listener for meta events that occur to PCEP links.
|
void |
addListener(PcepSwitchListener listener)
Register a listener for meta events that occur to PCEP devices.
|
void |
addTunnelListener(PcepTunnelListener listener)
Register a listener for meta events that occur to PCEP tunnel.
|
PcepTunnel |
applyTunnel(org.onosproject.net.DeviceId srcDid,
org.onosproject.net.DeviceId dstDid,
long srcPort,
long dstPort,
long bandwidth,
String name)
Setup a tunnel through pcep controller.
|
Boolean |
deleteTunnel(String id)
Delete tunnel by id.
|
PcepSwitch |
getSwitch(PcepDpid did)
Return a switch with a specified did.
|
Iterable<PcepSwitch> |
getSwitches()
Returns all switches known to this PCEP controller.
|
void |
getTunnelStatistics(String pcepTunnelId)
Send statistic request by tunnel id.
|
void |
removeLinkListener(PcepLinkListener listener)
Unregister a link listener.
|
void |
removeListener(PcepSwitchListener listener)
Unregister a listener.
|
void |
removeTunnelListener(PcepTunnelListener listener)
Unregister a tunnel listener.
|
Boolean |
updateTunnelBandwidth(String id,
long bandwidth)
Update tunnel bandwidth by tunnel id.
|
Iterable<PcepSwitch> getSwitches()
PcepSwitch getSwitch(PcepDpid did)
did - of a devicevoid addListener(PcepSwitchListener listener)
listener - the listener to notifyvoid removeListener(PcepSwitchListener listener)
listener - the listener to unregistervoid addLinkListener(PcepLinkListener listener)
listener - the listener to notifyvoid removeLinkListener(PcepLinkListener listener)
listener - the listener to unregistervoid addTunnelListener(PcepTunnelListener listener)
listener - the listener to notifyvoid removeTunnelListener(PcepTunnelListener listener)
listener - the listener to unregisterPcepTunnel applyTunnel(org.onosproject.net.DeviceId srcDid, org.onosproject.net.DeviceId dstDid, long srcPort, long dstPort, long bandwidth, String name)
srcDid - src deviceId of tunneldstDid - dst deviceId of tunnelsrcPort - src portdstPort - dst portbandwidth - andwidth of tunnelname - tunnel nameBoolean deleteTunnel(String id)
id - pcep tunnel id.Boolean updateTunnelBandwidth(String id, long bandwidth)
id - tunnel idbandwidth - bandwidth of a tunnelvoid getTunnelStatistics(String pcepTunnelId)
pcepTunnelId - PCEP tunnel id