@Service public class DistributedPceLabelStore extends Object implements PceLabelStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedPceLabelStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
addAdjLabel(org.onosproject.net.Link link,
LabelResourceId labelId)
Stores adjacency label into adjacency label store.
|
void |
addGlobalNodeLabel(org.onosproject.net.DeviceId deviceId,
LabelResourceId labelId)
Stores node label into global node label store.
|
boolean |
addLsrIdDevice(String lsrId,
org.onosproject.net.DeviceId deviceId)
Adds lsrid to device id mapping.
|
boolean |
addPccLsr(org.onosproject.net.DeviceId lsrId)
Adds lsrId of the PCC in form of device id for the PCC for which sync is pending due to non-availability of BGP.
|
void |
addTunnelInfo(TunnelId tunnelId,
List<LspLocalLabelInfo> lspLocalLabelInfoList)
Stores local label info with tunnel consumer id into tunnel info store for specified tunnel id.
|
protected void |
deactivate() |
boolean |
existsAdjLabel(org.onosproject.net.Link link)
Checks whether link is present in adjacency label store.
|
boolean |
existsGlobalNodeLabel(org.onosproject.net.DeviceId id)
Checks whether device id is present in global node label store.
|
boolean |
existsTunnelInfo(TunnelId tunnelId)
Checks whether tunnel id is present in tunnel info store.
|
LabelResourceId |
getAdjLabel(org.onosproject.net.Link link)
Retrieves adjacency label for specified link.
|
int |
getAdjLabelCount()
Retrieves the adjacency label count.
|
Map<org.onosproject.net.Link,LabelResourceId> |
getAdjLabels()
Retrieves link and label pairs collection from adjacency label store.
|
LabelResourceId |
getGlobalNodeLabel(org.onosproject.net.DeviceId id)
Retrieves node label for specified device id.
|
int |
getGlobalNodeLabelCount()
Retrieves the node label count.
|
Map<org.onosproject.net.DeviceId,LabelResourceId> |
getGlobalNodeLabels()
Retrieves device id and label pairs collection from global node label store.
|
org.onosproject.net.DeviceId |
getLsrIdDevice(String lsrId)
Gets lsrid to device id mapping.
|
List<LspLocalLabelInfo> |
getTunnelInfo(TunnelId tunnelId)
Retrieves local label info with tunnel consumer id from tunnel info store.
|
int |
getTunnelInfoCount()
Retrieves the tunnel info count.
|
Map<TunnelId,List<LspLocalLabelInfo>> |
getTunnelInfos()
Retrieves tunnel id and pcecc tunnel info pairs collection from tunnel info store.
|
boolean |
hasPccLsr(org.onosproject.net.DeviceId lsrId)
Gets lsrId of the PCC in form of device id.
|
boolean |
removeAdjLabel(org.onosproject.net.Link link)
Removes adjacency label from adjacency label store for specified link information.
|
boolean |
removeGlobalNodeLabel(org.onosproject.net.DeviceId id)
Removes device label from global node label store for specified device id.
|
boolean |
removeLsrIdDevice(String lsrId)
Removes lsrid to device id mapping.
|
boolean |
removePccLsr(org.onosproject.net.DeviceId lsrId)
Removes lsrId of the PCC in form of device id for the PCC for which pending sync is done.
|
boolean |
removeTunnelInfo(TunnelId tunnelId)
Removes local label info with tunnel consumer id from tunnel info store for specified tunnel id.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Activate protected void activate()
@Deactivate protected void deactivate()
public boolean existsGlobalNodeLabel(org.onosproject.net.DeviceId id)
PceLabelStoreexistsGlobalNodeLabel in interface PceLabelStoreid - device idpublic boolean existsAdjLabel(org.onosproject.net.Link link)
PceLabelStoreexistsAdjLabel in interface PceLabelStorelink - link between devicespublic boolean existsTunnelInfo(TunnelId tunnelId)
PceLabelStoreexistsTunnelInfo in interface PceLabelStoretunnelId - tunnel idpublic int getGlobalNodeLabelCount()
PceLabelStoregetGlobalNodeLabelCount in interface PceLabelStorepublic int getAdjLabelCount()
PceLabelStoregetAdjLabelCount in interface PceLabelStorepublic int getTunnelInfoCount()
PceLabelStoregetTunnelInfoCount in interface PceLabelStorepublic Map<org.onosproject.net.DeviceId,LabelResourceId> getGlobalNodeLabels()
PceLabelStoregetGlobalNodeLabels in interface PceLabelStorepublic Map<org.onosproject.net.Link,LabelResourceId> getAdjLabels()
PceLabelStoregetAdjLabels in interface PceLabelStorepublic Map<TunnelId,List<LspLocalLabelInfo>> getTunnelInfos()
PceLabelStoregetTunnelInfos in interface PceLabelStorepublic LabelResourceId getGlobalNodeLabel(org.onosproject.net.DeviceId id)
PceLabelStoregetGlobalNodeLabel in interface PceLabelStoreid - device idpublic LabelResourceId getAdjLabel(org.onosproject.net.Link link)
PceLabelStoregetAdjLabel in interface PceLabelStorelink - between devicespublic List<LspLocalLabelInfo> getTunnelInfo(TunnelId tunnelId)
PceLabelStoregetTunnelInfo in interface PceLabelStoretunnelId - tunnel idpublic void addGlobalNodeLabel(org.onosproject.net.DeviceId deviceId,
LabelResourceId labelId)
PceLabelStoreaddGlobalNodeLabel in interface PceLabelStoredeviceId - device idlabelId - node label idpublic void addAdjLabel(org.onosproject.net.Link link,
LabelResourceId labelId)
PceLabelStoreaddAdjLabel in interface PceLabelStorelink - link between nodeslabelId - link label idpublic void addTunnelInfo(TunnelId tunnelId, List<LspLocalLabelInfo> lspLocalLabelInfoList)
PceLabelStoreaddTunnelInfo in interface PceLabelStoretunnelId - tunnel idlspLocalLabelInfoList - local label infopublic boolean removeGlobalNodeLabel(org.onosproject.net.DeviceId id)
PceLabelStoreremoveGlobalNodeLabel in interface PceLabelStoreid - device idpublic boolean removeAdjLabel(org.onosproject.net.Link link)
PceLabelStoreremoveAdjLabel in interface PceLabelStorelink - between nodespublic boolean removeTunnelInfo(TunnelId tunnelId)
PceLabelStoreremoveTunnelInfo in interface PceLabelStoretunnelId - tunnel idpublic boolean addLsrIdDevice(String lsrId, org.onosproject.net.DeviceId deviceId)
PceLabelStoreaddLsrIdDevice in interface PceLabelStorelsrId - lsrId of the devicedeviceId - device idpublic boolean removeLsrIdDevice(String lsrId)
PceLabelStoreremoveLsrIdDevice in interface PceLabelStorelsrId - lsrId of the devicepublic org.onosproject.net.DeviceId getLsrIdDevice(String lsrId)
PceLabelStoregetLsrIdDevice in interface PceLabelStorelsrId - lsrId of the devicepublic boolean addPccLsr(org.onosproject.net.DeviceId lsrId)
PceLabelStoreaddPccLsr in interface PceLabelStorelsrId - LSR id of the PCC in form of device idpublic boolean removePccLsr(org.onosproject.net.DeviceId lsrId)
PceLabelStoreremovePccLsr in interface PceLabelStorelsrId - LSR id of the PCC in form of device idpublic boolean hasPccLsr(org.onosproject.net.DeviceId lsrId)
PceLabelStorehasPccLsr in interface PceLabelStorelsrId - LSR id of the PCC in form of device id