@Service public class PceManager extends Object implements PceService
| Modifier and Type | Class and Description |
|---|---|
protected class |
PceManager.TeConstraintBasedLinkWeight |
| Modifier and Type | Field and Description |
|---|---|
protected CoreService |
coreService |
static String |
DEVICE_TYPE |
protected DeviceService |
deviceService |
static long |
GLOBAL_LABEL_SPACE_MAX |
static long |
GLOBAL_LABEL_SPACE_MIN |
static int |
INITIAL_DELAY |
static String |
L3_DEVICE |
protected DistributedSet<Short> |
localLspIdFreeList |
protected MastershipService |
mastershipService |
protected NetworkConfigService |
netCfgService |
protected PathService |
pathService |
static String |
PCE_SERVICE_APP |
static int |
PCEP_PORT |
protected PceStore |
pceStore |
static int |
PERIODIC_DELAY |
protected ResourceQueryService |
resourceQueryService |
protected ResourceService |
resourceService |
protected StorageService |
storageService |
protected TopologyService |
topologyService |
protected TunnelService |
tunnelService |
| Constructor and Description |
|---|
PceManager()
Creates new instance of PceManager.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected Set<Path> |
computePath(DeviceId src,
DeviceId dst,
List<Constraint> constraints)
Computes a path between two devices.
|
protected void |
deactivate() |
List<ExplicitPathInfo> |
explicitPathInfoList(String tunnelName)
Returns list of explicit path info.
|
Iterable<Tunnel> |
queryAllPath()
Queries all paths.
|
Tunnel |
queryPath(TunnelId tunnelId)
Queries particular path based on tunnel identifier.
|
boolean |
releasePath(TunnelId tunnelId)
Releases an existing path.
|
boolean |
setupPath(DeviceId src,
DeviceId dst,
String tunnelName,
List<Constraint> constraints,
LspType lspType)
Creates new path based on constraints and LSP type.
|
boolean |
setupPath(DeviceId src,
DeviceId dst,
String tunnelName,
List<Constraint> constraints,
LspType lspType,
List<ExplicitPathInfo> explicitPathInfo)
Creates new path based on constraints and LSP type.
|
boolean |
updatePath(TunnelId tunnelId,
List<Constraint> constraints)
Updates an existing path.
|
public static final long GLOBAL_LABEL_SPACE_MIN
public static final long GLOBAL_LABEL_SPACE_MAX
public static final String PCE_SERVICE_APP
public static final String DEVICE_TYPE
public static final String L3_DEVICE
public static final int PCEP_PORT
protected DistributedSet<Short> localLspIdFreeList
@Reference(cardinality=MANDATORY_UNARY) protected CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected ResourceService resourceService
@Reference(cardinality=MANDATORY_UNARY) protected ResourceQueryService resourceQueryService
@Reference(cardinality=MANDATORY_UNARY) protected PathService pathService
@Reference(cardinality=MANDATORY_UNARY) protected PceStore pceStore
@Reference(cardinality=MANDATORY_UNARY) protected TunnelService tunnelService
@Reference(cardinality=MANDATORY_UNARY) protected DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected NetworkConfigService netCfgService
@Reference(cardinality=MANDATORY_UNARY) protected MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected TopologyService topologyService
public static final int INITIAL_DELAY
public static final int PERIODIC_DELAY
@Activate protected void activate()
@Deactivate protected void deactivate()
protected Set<Path> computePath(DeviceId src, DeviceId dst, List<Constraint> constraints)
src - ingress devicedst - egress deviceconstraints - path constraintspublic boolean setupPath(DeviceId src, DeviceId dst, String tunnelName, List<Constraint> constraints, LspType lspType)
PceServicesetupPath in interface PceServicesrc - source devicedst - destination devicetunnelName - name of the tunnelconstraints - list of constraints to be applied on pathlspType - type of path to be setuppublic boolean setupPath(DeviceId src, DeviceId dst, String tunnelName, List<Constraint> constraints, LspType lspType, List<ExplicitPathInfo> explicitPathInfo)
PceServicesetupPath in interface PceServicesrc - source devicedst - destination devicetunnelName - name of the tunnelconstraints - list of constraints to be applied on pathlspType - type of path to be setupexplicitPathInfo - list of explicit path infopublic boolean updatePath(TunnelId tunnelId, List<Constraint> constraints)
PceServiceupdatePath in interface PceServicetunnelId - tunnel identifierconstraints - list of constraints to be applied on pathpublic boolean releasePath(TunnelId tunnelId)
PceServicereleasePath in interface PceServicetunnelId - tunnel identifierpublic Iterable<Tunnel> queryAllPath()
PceServicequeryAllPath in interface PceServicepublic Tunnel queryPath(TunnelId tunnelId)
PceServicequeryPath in interface PceServicetunnelId - tunnel identifierpublic List<ExplicitPathInfo> explicitPathInfoList(String tunnelName)
PceServiceexplicitPathInfoList in interface PceServicetunnelName - tunnel name