Package org.onosproject.net.behaviour
Class DefaultTunnelDescription
- java.lang.Object
-
- org.onosproject.net.AbstractDescription
-
- org.onosproject.net.behaviour.DefaultTunnelDescription
-
- All Implemented Interfaces:
Annotated,TunnelDescription,Description
public final class DefaultTunnelDescription extends AbstractDescription implements TunnelDescription
Default implementation of immutable tunnel interface description entity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultTunnelDescription.Builder-
Nested classes/interfaces inherited from interface org.onosproject.net.behaviour.TunnelDescription
TunnelDescription.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultTunnelDescription.Builderbuilder()Creates and returns a new builder instance.Optional<String>deviceId()Returns the identifier of the device where the interface is.StringifaceName()Return the name of the tunnel interface.Optional<TunnelKey>key()Returns the tunnel key.Optional<TunnelEndPoint>local()Returns the local connection point.Optional<TunnelEndPoint>remote()Returns the remote connection point.StringtoString()TunnelDescription.Typetype()Returns the tunnel type.-
Methods inherited from class org.onosproject.net.AbstractDescription
annotations, equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onosproject.net.Description
annotations
-
-
-
-
Method Detail
-
deviceId
public Optional<String> deviceId()
Description copied from interface:TunnelDescriptionReturns the identifier of the device where the interface is.- Specified by:
deviceIdin interfaceTunnelDescription- Returns:
- device identifier
-
ifaceName
public String ifaceName()
Description copied from interface:TunnelDescriptionReturn the name of the tunnel interface.- Specified by:
ifaceNamein interfaceTunnelDescription- Returns:
- tunnel interface name
-
type
public TunnelDescription.Type type()
Description copied from interface:TunnelDescriptionReturns the tunnel type.- Specified by:
typein interfaceTunnelDescription- Returns:
- tunnel type
-
local
public Optional<TunnelEndPoint> local()
Description copied from interface:TunnelDescriptionReturns the local connection point.- Specified by:
localin interfaceTunnelDescription- Returns:
- tunnel source ConnectionPoint
-
remote
public Optional<TunnelEndPoint> remote()
Description copied from interface:TunnelDescriptionReturns the remote connection point.- Specified by:
remotein interfaceTunnelDescription- Returns:
- tunnel destination
-
key
public Optional<TunnelKey> key()
Description copied from interface:TunnelDescriptionReturns the tunnel key.- Specified by:
keyin interfaceTunnelDescription- Returns:
- tunnel key
-
builder
public static DefaultTunnelDescription.Builder builder()
Creates and returns a new builder instance.- Returns:
- default tunnel description builder
-
-