Class VplsIntentUtility


  • public final class VplsIntentUtility
    extends Object
    Intent utilities for VPLS.
    • Field Detail

      • PARTIAL_FAILURE_CONSTRAINT

        public static final com.google.common.collect.ImmutableList<org.onosproject.net.intent.Constraint> PARTIAL_FAILURE_CONSTRAINT
    • Method Detail

      • buildBrcIntents

        public static Set<org.onosproject.net.intent.Intent> buildBrcIntents​(VplsData vplsData,
                                                                             org.onosproject.core.ApplicationId appId)
        Builds broadcast Intents for a VPLS.
        Parameters:
        vplsData - the VPLS
        appId - the application id for Intents
        Returns:
        broadcast Intents for the VPLS
      • buildUniIntents

        public static Set<org.onosproject.net.intent.Intent> buildUniIntents​(VplsData vplsData,
                                                                             Set<org.onosproject.net.Host> hosts,
                                                                             org.onosproject.core.ApplicationId appId)
        Builds unicast Intents for a VPLS.
        Parameters:
        vplsData - the VPLS
        hosts - the hosts of the VPLS
        appId - application ID for Intents
        Returns:
        unicast Intents for the VPLS
      • setEncap

        public static void setEncap​(org.onosproject.net.intent.ConnectivityIntent.Builder builder,
                                    List<org.onosproject.net.intent.Constraint> constraints,
                                    org.onosproject.net.EncapsulationType encap)
        Sets one or more encapsulation constraints on the intent builder given.
        Parameters:
        builder - the intent builder
        constraints - the existing intent constraints
        encap - the encapsulation type to be set