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,
                                       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
        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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object