@Service public class PcepTunnelProvider extends org.onosproject.net.provider.AbstractProvider implements TunnelProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cfg.ComponentConfigService |
cfgService |
protected PcepController |
controller |
protected org.onosproject.net.device.DeviceService |
deviceService |
static long |
IDENTIFIER_SET |
protected org.onosproject.net.link.LinkService |
linkService |
static String |
LSRID |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected PcepClientController |
pcepClientController |
protected PcepTunnelApiMapper |
pcepTunnelApiMapper |
static long |
SET |
protected TunnelAdminService |
tunnelAdminService |
protected TunnelProviderRegistry |
tunnelProviderRegistry |
protected TunnelService |
tunnelService |
| Constructor and Description |
|---|
PcepTunnelProvider()
Creates a Tunnel provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
void |
modified(org.osgi.service.component.ComponentContext context) |
String |
pathToString(List<org.onosproject.net.Link> links) |
void |
releaseTunnel(org.onosproject.net.ElementId srcElement,
Tunnel tunnel)
Instructs the provider to release a tunnel given the respective device.
|
void |
releaseTunnel(Tunnel tunnel)
Instructs the provider to release a tunnel.
|
void |
setupTunnel(org.onosproject.net.ElementId srcElement,
Tunnel tunnel,
org.onosproject.net.Path path)
Instructs the provider to setup a tunnel given the respective device.
|
void |
setupTunnel(Tunnel tunnel,
org.onosproject.net.Path path)
Instructs the provider to setup a tunnel.
|
TunnelId |
tunnelAdded(TunnelDescription tunnel)
Signals that the provider has added a tunnel.
|
TunnelId |
tunnelAdded(TunnelDescription tunnel,
Tunnel.State tunnelState) |
Tunnel |
tunnelQueryById(TunnelId tunnelId)
Signals that the a tunnel was queried.
|
void |
tunnelRemoved(TunnelDescription tunnel)
Signals that the provider has removed a tunnel.
|
void |
tunnelUpdated(TunnelDescription tunnel)
Signals that the a tunnel was changed (e.g., sensing changes of
tunnel).It's used by producers.
|
void |
tunnelUpdated(TunnelDescription tunnel,
Tunnel.State tunnelState) |
void |
updateTunnel(org.onosproject.net.ElementId srcElement,
Tunnel tunnel,
org.onosproject.net.Path path)
Instructs the provider to update a tunnel given the respective device.
|
void |
updateTunnel(Tunnel tunnel,
org.onosproject.net.Path path)
Instructs the provider to update a tunnel.
|
public static final long IDENTIFIER_SET
public static final long SET
public static final String LSRID
@Reference(cardinality=MANDATORY_UNARY) protected TunnelProviderRegistry tunnelProviderRegistry
@Reference(cardinality=MANDATORY_UNARY) protected PcepController controller
@Reference(cardinality=MANDATORY_UNARY) protected PcepClientController pcepClientController
@Reference(cardinality=MANDATORY_UNARY) protected TunnelService tunnelService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService cfgService
@Reference(cardinality=MANDATORY_UNARY) protected TunnelAdminService tunnelAdminService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.link.LinkService linkService
protected PcepTunnelApiMapper pcepTunnelApiMapper
@Activate public void activate()
@Deactivate public void deactivate()
public void modified(org.osgi.service.component.ComponentContext context)
public void setupTunnel(Tunnel tunnel, org.onosproject.net.Path path)
TunnelProvidersetupTunnel in interface TunnelProvidertunnel - Tunnelpath - explicit route or null for the tunnelpublic void setupTunnel(org.onosproject.net.ElementId srcElement,
Tunnel tunnel,
org.onosproject.net.Path path)
TunnelProvidersetupTunnel in interface TunnelProvidersrcElement - devicetunnel - Tunnelpath - explicit route (not null) for the tunnelpublic void releaseTunnel(Tunnel tunnel)
TunnelProviderreleaseTunnel in interface TunnelProvidertunnel - Tunnelpublic void releaseTunnel(org.onosproject.net.ElementId srcElement,
Tunnel tunnel)
TunnelProviderreleaseTunnel in interface TunnelProvidersrcElement - devicetunnel - Tunnelpublic void updateTunnel(Tunnel tunnel, org.onosproject.net.Path path)
TunnelProviderupdateTunnel in interface TunnelProvidertunnel - Tunnelpath - explicit route (path changed) or null (path not changed) for
the tunnelpublic void updateTunnel(org.onosproject.net.ElementId srcElement,
Tunnel tunnel,
org.onosproject.net.Path path)
TunnelProviderupdateTunnel in interface TunnelProvidersrcElement - devicetunnel - Tunnelpath - explicit route (path changed) or null (path not changed) for
the tunnelpublic TunnelId tunnelAdded(TunnelDescription tunnel)
TunnelProvidertunnelAdded in interface TunnelProvidertunnel - tunnel informationpublic TunnelId tunnelAdded(TunnelDescription tunnel, Tunnel.State tunnelState)
public void tunnelRemoved(TunnelDescription tunnel)
TunnelProvidertunnelRemoved in interface TunnelProvidertunnel - tunnel informationpublic void tunnelUpdated(TunnelDescription tunnel)
TunnelProvidertunnelUpdated in interface TunnelProvidertunnel - tunnel informationpublic void tunnelUpdated(TunnelDescription tunnel, Tunnel.State tunnelState)
public Tunnel tunnelQueryById(TunnelId tunnelId)
TunnelProvidertunnelQueryById in interface TunnelProvidertunnelId - tunnel identity