Package org.onosproject.vpls.intent
Class VplsIntentUtility
- java.lang.Object
-
- org.onosproject.vpls.intent.VplsIntentUtility
-
public final class VplsIntentUtility extends Object
Intent utilities for VPLS.
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableList<org.onosproject.net.intent.Constraint>PARTIAL_FAILURE_CONSTRAINTstatic StringPREFIX_BROADCASTstatic StringPREFIX_UNICAST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<org.onosproject.net.intent.Intent>buildBrcIntents(VplsData vplsData, org.onosproject.core.ApplicationId appId)Builds broadcast Intents for a VPLS.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.static voidsetEncap(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.
-
-
-
Field Detail
-
PREFIX_BROADCAST
public static final String PREFIX_BROADCAST
- See Also:
- Constant Field Values
-
PREFIX_UNICAST
public static final String PREFIX_UNICAST
- 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 Set<org.onosproject.net.intent.Intent> buildBrcIntents(VplsData vplsData, org.onosproject.core.ApplicationId appId)
Builds broadcast Intents for a VPLS.- Parameters:
vplsData- the VPLSappId- 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 VPLShosts- the hosts of the VPLSappId- 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 builderconstraints- the existing intent constraintsencap- the encapsulation type to be set
-
-