public class LinkCollectionIntentFlowObjectiveCompiler extends LinkCollectionCompiler<org.onosproject.net.flowobjective.Objective> implements org.onosproject.net.intent.IntentCompiler<org.onosproject.net.intent.LinkCollectionIntent>
LinkCollectionCompiler.ForwardingInstructions| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.flowobjective.FlowObjectiveService |
flowObjectiveService |
protected IntentConfigurableRegistrator |
registrator |
| Constructor and Description |
|---|
LinkCollectionIntentFlowObjectiveCompiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
List<org.onosproject.net.intent.Intent> |
compile(org.onosproject.net.intent.LinkCollectionIntent intent,
List<org.onosproject.net.intent.Intent> installable) |
protected List<org.onosproject.net.flowobjective.Objective> |
createRules(org.onosproject.net.intent.LinkCollectionIntent intent,
org.onosproject.net.DeviceId deviceId,
Set<org.onosproject.net.PortNumber> inPorts,
Set<org.onosproject.net.PortNumber> outPorts)
Creates the flows representations.
|
void |
deactivate() |
computePorts, computePorts, createForwardingInstructions@Reference(cardinality=MANDATORY_UNARY) protected IntentConfigurableRegistrator registrator
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.flowobjective.FlowObjectiveService flowObjectiveService
public LinkCollectionIntentFlowObjectiveCompiler()
@Activate public void activate()
@Deactivate public void deactivate()
public List<org.onosproject.net.intent.Intent> compile(org.onosproject.net.intent.LinkCollectionIntent intent, List<org.onosproject.net.intent.Intent> installable)
compile in interface org.onosproject.net.intent.IntentCompiler<org.onosproject.net.intent.LinkCollectionIntent>protected List<org.onosproject.net.flowobjective.Objective> createRules(org.onosproject.net.intent.LinkCollectionIntent intent, org.onosproject.net.DeviceId deviceId, Set<org.onosproject.net.PortNumber> inPorts, Set<org.onosproject.net.PortNumber> outPorts)
LinkCollectionCompilercreateRules in class LinkCollectionCompiler<org.onosproject.net.flowobjective.Objective>intent - the intent to compiledeviceId - the affected deviceinPorts - the input portsoutPorts - the output ports