Class VplsIntentUtility


  • public final class VplsIntentUtility
    extends java.lang.Object
    Intent utilities for VPLS.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<org.onosproject.net.intent.Intent> buildBrcIntents​(VplsData vplsData, org.onosproject.core.ApplicationId appId)
      Builds broadcast Intents for a VPLS.
      static java.util.Set<org.onosproject.net.intent.Intent> buildUniIntents​(VplsData vplsData, java.util.Set<org.onosproject.net.Host> hosts, org.onosproject.core.ApplicationId appId)
      Builds unicast Intents for a VPLS.
      static void setEncap​(org.onosproject.net.intent.ConnectivityIntent.Builder builder, java.util.List<org.onosproject.net.intent.Constraint> constraints, org.onosproject.net.EncapsulationType encap)
      Sets one or more encapsulation constraints on the intent builder given.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PREFIX_BROADCAST

        public static final java.lang.String PREFIX_BROADCAST
        See Also:
        Constant Field Values
      • PARTIAL_FAILURE_CONSTRAINT

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

      • buildBrcIntents

        public static java.util.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 java.util.Set<org.onosproject.net.intent.Intent> buildUniIntents​(VplsData vplsData,
                                                                                       java.util.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,
                                    java.util.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