@Service public class OvsdbTunnelProvider extends org.onosproject.net.provider.AbstractProvider implements TunnelProvider
| Modifier and Type | Field and Description |
|---|---|
protected TunnelProviderRegistry |
providerRegistry |
protected TunnelService |
tunnelService |
| Constructor and Description |
|---|
OvsdbTunnelProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
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.
|
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 |
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.
|
@Reference(cardinality=MANDATORY_UNARY) protected TunnelProviderRegistry providerRegistry
@Reference(cardinality=MANDATORY_UNARY) protected TunnelService tunnelService
@Activate public void activate()
@Deactivate public void deactivate()
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 void tunnelRemoved(TunnelDescription tunnel)
TunnelProvidertunnelRemoved in interface TunnelProvidertunnel - tunnel informationpublic void tunnelUpdated(TunnelDescription tunnel)
TunnelProvidertunnelUpdated in interface TunnelProvidertunnel - tunnel informationpublic Tunnel tunnelQueryById(TunnelId tunnelId)
TunnelProvidertunnelQueryById in interface TunnelProvidertunnelId - tunnel identity