Class OpticalCircuitIntent


  • @Beta
    public class OpticalCircuitIntent
    extends Intent
    An optical layer intent for circuits between two OduClt ports. No traffic selector or traffic treatment are needed.
    • Constructor Detail

      • OpticalCircuitIntent

        protected OpticalCircuitIntent​(ApplicationId appId,
                                       Key key,
                                       ConnectPoint src,
                                       ConnectPoint dst,
                                       CltSignalType signalType,
                                       boolean isBidirectional,
                                       Optional<OchSignal> ochSignal,
                                       Optional<Path> suggestedPath,
                                       int priority,
                                       ResourceGroup resourceGroup)
        Creates an optical circuit intent between the specified connection points.
        Parameters:
        appId - application identification
        key - intent key
        src - the source transponder port
        dst - the destination transponder port
        signalType - ODU signal type
        isBidirectional - indicate if intent is bidirectional
        ochSignal - optional suggested signal
        suggestedPath - optional suggested path
        priority - priority to use for flows from this intent
        resourceGroup - resource group for this intent
      • OpticalCircuitIntent

        protected OpticalCircuitIntent()
        Constructor for serializer.
    • Method Detail

      • builder

        public static OpticalCircuitIntent.Builder builder()
        Returns a new optical circuit 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 CltSignalType 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 Optional<OchSignal> ochSignal()
        Returns the OCh signal of the intent.
        Returns:
        the lambda
      • suggestedPath

        public Optional<Path> suggestedPath()
        Returns the suggestedPath of the intent.
        Returns:
        the suggestedPath