Package org.onosproject.vpls.intent
Class VplsIntentUtility
- java.lang.Object
-
- org.onosproject.vpls.intent.VplsIntentUtility
-
public final class VplsIntentUtility extends java.lang.ObjectIntent 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 java.lang.StringPREFIX_BROADCASTstatic java.lang.StringPREFIX_UNICAST
-
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 voidsetEncap(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.
-
-
-
Field Detail
-
PREFIX_BROADCAST
public static final java.lang.String PREFIX_BROADCAST
- See Also:
- Constant Field Values
-
PREFIX_UNICAST
public static final java.lang.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 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 VPLSappId- 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 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, 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 builderconstraints- the existing intent constraintsencap- the encapsulation type to be set
-
-