@Beta public interface TunnelService extends org.onosproject.event.ListenerService<TunnelEvent,TunnelListener>
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Tunnel> |
borrowTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
org.onosproject.net.Annotations... annotations)
Borrows all tunnels between source and destination.
|
java.util.Collection<Tunnel> |
borrowTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
org.onosproject.net.Annotations... annotations)
Borrows all specified type tunnels between source and destination.
|
Tunnel |
borrowTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelId tunnelId,
org.onosproject.net.Annotations... annotations)
Borrows a specific tunnel.
|
java.util.Collection<Tunnel> |
borrowTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelName tunnelName,
org.onosproject.net.Annotations... annotations)
Borrows a specific tunnel by tunnelName.
|
boolean |
downTunnel(org.onosproject.core.ApplicationId producerId,
TunnelId tunnelId)
Triggers removal of specified tunnel.
|
java.lang.Iterable<Tunnel> |
getTunnels(org.onosproject.net.DeviceId deviceId)
Returns the collection of tunnels applied on the specified device.
|
java.util.Collection<Tunnel> |
queryAllTunnels()
Returns all tunnels.
|
java.util.Collection<Tunnel> |
queryTunnel(Tunnel.Type type)
Returns all specified type tunnels.
|
java.util.Collection<Tunnel> |
queryTunnel(TunnelEndPoint src,
TunnelEndPoint dst)
Returns all tunnels between source point and destination point.
|
Tunnel |
queryTunnel(TunnelId tunnelId)
Returns a tunnel by a specific tunnel identity.
|
java.util.Collection<TunnelSubscription> |
queryTunnelSubscription(org.onosproject.core.ApplicationId consumerId)
Returns all tunnel subscription record by consumer.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
org.onosproject.net.Annotations... annotations)
Returns all tunnels between source and destination back the store.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
org.onosproject.net.Annotations... annotations)
Returns all specific type tunnels between source and destination back
store.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelId tunnelId,
org.onosproject.net.Annotations... annotations)
Returns back a specific tunnel to store.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelName tunnelName,
org.onosproject.net.Annotations... annotations)
Returns all specific name tunnel back store.
|
TunnelId |
setupTunnel(org.onosproject.core.ApplicationId producerId,
org.onosproject.net.ElementId srcElementId,
Tunnel tunnel,
org.onosproject.net.Path path)
Creates a tunnel with given path and default initial state.
|
int |
tunnelCount()
Returns all tunnels.
|
Tunnel borrowTunnel(org.onosproject.core.ApplicationId consumerId, TunnelId tunnelId, org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumertunnelId - tunnel identify generated by onosannotations - Annotationsjava.util.Collection<Tunnel> borrowTunnel(org.onosproject.core.ApplicationId consumerId, TunnelName tunnelName, org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumertunnelName - tunnel nameannotations - Annotationsjava.util.Collection<Tunnel> borrowTunnel(org.onosproject.core.ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunnelannotations - Annotationsjava.util.Collection<Tunnel> borrowTunnel(org.onosproject.core.ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunneltype - tunnel typeannotations - AnnotationsTunnelId setupTunnel(org.onosproject.core.ApplicationId producerId, org.onosproject.net.ElementId srcElementId, Tunnel tunnel, org.onosproject.net.Path path)
producerId - a tunnel producersrcElementId - element id of the sourcetunnel - to be createdpath - path of the tunnelboolean downTunnel(org.onosproject.core.ApplicationId producerId,
TunnelId tunnelId)
producerId - a tunnel producertunnelId - identity for the tunnel to be triggered for removalboolean returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelId tunnelId,
org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumertunnelId - tunnel identify generated by ONOSannotations - Annotationsboolean returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelName tunnelName,
org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumertunnelName - tunnel nameannotations - Annotationsboolean returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunneltype - tunnel typeannotations - Annotationsboolean returnTunnel(org.onosproject.core.ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
org.onosproject.net.Annotations... annotations)
consumerId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunnel.annotations - AnnotationsTunnel queryTunnel(TunnelId tunnelId)
tunnelId - tunnel identify generated by tunnel producerjava.util.Collection<TunnelSubscription> queryTunnelSubscription(org.onosproject.core.ApplicationId consumerId)
consumerId - consumer identityjava.util.Collection<Tunnel> queryTunnel(Tunnel.Type type)
type - tunnel typejava.util.Collection<Tunnel> queryTunnel(TunnelEndPoint src, TunnelEndPoint dst)
src - a source point of tunnel.dst - a destination point of tunnel.java.util.Collection<Tunnel> queryAllTunnels()
int tunnelCount()
java.lang.Iterable<Tunnel> getTunnels(org.onosproject.net.DeviceId deviceId)
deviceId - device identifier