Package org.onosproject.net.intent
Class OpticalConnectivityIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.OpticalConnectivityIntent
-
@Beta public final class OpticalConnectivityIntent extends Intent
An optical layer intent for connectivity between two OCh ports. No traffic selector or traffic treatment are needed. OchSignal and suggestedPath are optional.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpticalConnectivityIntent.Builder
Builder for optical connectivity intents.
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OpticalConnectivityIntent()
Constructor for serializer.protected
OpticalConnectivityIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, OduSignalType signalType, boolean isBidirectional, java.util.Optional<OchSignal> ochSignal, java.util.Optional<Path> suggestedPath, int priority, ResourceGroup resourceGroup)
Creates an optical connectivity intent between the specified connection points.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpticalConnectivityIntent.Builder
builder()
Returns a new optical connectivity intent builder.ConnectPoint
getDst()
Returns the destination transponder port.OduSignalType
getSignalType()
Returns the ODU signal type.ConnectPoint
getSrc()
Returns the source transponder port.boolean
isBidirectional()
Returns the directionality of the intent.java.util.Optional<OchSignal>
ochSignal()
Returns the OCh signal of the intent.java.util.Optional<Path>
suggestedPath()
Returns the suggestedPath of the intent.java.lang.String
toString()
-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Constructor Detail
-
OpticalConnectivityIntent
protected OpticalConnectivityIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, OduSignalType signalType, boolean isBidirectional, java.util.Optional<OchSignal> ochSignal, java.util.Optional<Path> suggestedPath, int priority, ResourceGroup resourceGroup)
Creates an optical connectivity intent between the specified connection points.- Parameters:
appId
- application identificationkey
- intent keysrc
- the source transponder portdst
- the destination transponder portsignalType
- signal typeisBidirectional
- indicates if intent is unidirectionalochSignal
- optional OCh signalsuggestedPath
- optional suggested pathpriority
- priority to use for flows from this intentresourceGroup
- resource group of this intent
-
OpticalConnectivityIntent
protected OpticalConnectivityIntent()
Constructor for serializer.
-
-
Method Detail
-
builder
public static OpticalConnectivityIntent.Builder builder()
Returns a new optical connectivity intent builder.- Returns:
- host to host intent builder
-
getSrc
public ConnectPoint getSrc()
Returns the source transponder port.- Returns:
- source transponder port
-
getDst
public ConnectPoint getDst()
Returns the destination transponder port.- Returns:
- source transponder port
-
getSignalType
public OduSignalType getSignalType()
Returns the ODU signal type.- Returns:
- ODU signal type
-
isBidirectional
public boolean isBidirectional()
Returns the directionality of the intent.- Returns:
- true if bidirectional, false if unidirectional
-
ochSignal
public java.util.Optional<OchSignal> ochSignal()
Returns the OCh signal of the intent.- Returns:
- the lambda
-
suggestedPath
public java.util.Optional<Path> suggestedPath()
Returns the suggestedPath of the intent.- Returns:
- the suggestedPath
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-