public final class PceccSrTeBeHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
allocateAdjacencyLabel(org.onosproject.net.Link link)
Allocates adjacency label to a link from local resource pool by a specific device id.
|
boolean |
allocateNodeLabel(org.onosproject.net.DeviceId specificDeviceId,
String specificLsrId)
Allocates node label from global node label pool to specific device.
|
LabelStack |
computeLabelStack(org.onosproject.net.Path path)
Computes label stack for a path.
|
static PceccSrTeBeHandler |
getInstance()
Returns single instance of this class.
|
String |
getLsrId(org.onosproject.net.DeviceId deviceId)
Retrieve lsr-id from device annotation.
|
void |
initialize(LabelResourceAdminService labelRsrcAdminService,
LabelResourceService labelRsrcService,
PcepClientController clientController,
PceLabelStore pceStore,
org.onosproject.net.device.DeviceService deviceService)
Initialization of label manager interfaces and pce store.
|
boolean |
releaseAdjacencyLabel(org.onosproject.net.Link link)
Releases unused adjacency labels from device pools.
|
boolean |
releaseNodeLabel(org.onosproject.net.DeviceId specificDeviceId,
String specificLsrId)
Releases assigned node label of specific device from global node label pool and pce store.
|
boolean |
reserveGlobalPool(long beginLabel,
long endLabel)
Reserves the global label pool.
|
public static PceccSrTeBeHandler getInstance()
public void initialize(LabelResourceAdminService labelRsrcAdminService, LabelResourceService labelRsrcService, PcepClientController clientController, PceLabelStore pceStore, org.onosproject.net.device.DeviceService deviceService)
labelRsrcAdminService - label resource admin servicelabelRsrcService - label resource serviceclientController - client controllerpceStore - PCE label storedeviceService - device servicepublic boolean reserveGlobalPool(long beginLabel,
long endLabel)
beginLabel - minimum value of global label spaceendLabel - maximum value of global label spacepublic String getLsrId(org.onosproject.net.DeviceId deviceId)
deviceId - specific device id from which lsr-id needs to be retrievedpublic boolean allocateNodeLabel(org.onosproject.net.DeviceId specificDeviceId,
String specificLsrId)
specificDeviceId - node label needs to be allocated to specific devicespecificLsrId - lsrid of specific devicepublic boolean releaseNodeLabel(org.onosproject.net.DeviceId specificDeviceId,
String specificLsrId)
specificDeviceId - node label needs to be released for specific devicespecificLsrId - lsrid of specific devicepublic boolean allocateAdjacencyLabel(org.onosproject.net.Link link)
link - between devicespublic boolean releaseAdjacencyLabel(org.onosproject.net.Link link)
link - between devicespublic LabelStack computeLabelStack(org.onosproject.net.Path path)
path - lsp path