public class LinkCollectionCompiler<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
LinkCollectionCompiler.ForwardingInstructions
Helper class to encapsulate treatment and selector.
|
| Constructor and Description |
|---|
LinkCollectionCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computePorts(org.onosproject.net.intent.LinkCollectionIntent intent,
org.onosproject.net.DeviceId deviceId,
Set<org.onosproject.net.PortNumber> ingressPorts,
Set<org.onosproject.net.PortNumber> egressPorts)
Helper method to compute ingress and egress ports.
|
protected void |
computePorts(org.onosproject.net.intent.LinkCollectionIntent intent,
com.google.common.collect.SetMultimap<org.onosproject.net.DeviceId,org.onosproject.net.PortNumber> inputPorts,
com.google.common.collect.SetMultimap<org.onosproject.net.DeviceId,org.onosproject.net.PortNumber> outputPorts)
Helper method to compute input and ouput ports.
|
protected LinkCollectionCompiler.ForwardingInstructions |
createForwardingInstructions(org.onosproject.net.intent.LinkCollectionIntent intent,
org.onosproject.net.PortNumber inPort,
org.onosproject.net.DeviceId deviceId,
Set<org.onosproject.net.PortNumber> outPorts,
Set<org.onosproject.net.PortNumber> ingressPorts,
Set<org.onosproject.net.PortNumber> egressPorts)
Computes treatment and selector which will be used
in the flow representation (Rule, Objective).
|
protected List<T> |
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.
|
protected void computePorts(org.onosproject.net.intent.LinkCollectionIntent intent,
com.google.common.collect.SetMultimap<org.onosproject.net.DeviceId,org.onosproject.net.PortNumber> inputPorts,
com.google.common.collect.SetMultimap<org.onosproject.net.DeviceId,org.onosproject.net.PortNumber> outputPorts)
intent - the related intentsinputPorts - the input ports to computeoutputPorts - the output ports to computeprotected void computePorts(org.onosproject.net.intent.LinkCollectionIntent intent,
org.onosproject.net.DeviceId deviceId,
Set<org.onosproject.net.PortNumber> ingressPorts,
Set<org.onosproject.net.PortNumber> egressPorts)
intent - the related intentsingressPorts - the ingress ports to computeegressPorts - the egress ports to computeprotected List<T> createRules(org.onosproject.net.intent.LinkCollectionIntent intent, org.onosproject.net.DeviceId deviceId, Set<org.onosproject.net.PortNumber> inPorts, Set<org.onosproject.net.PortNumber> outPorts)
intent - the intent to compiledeviceId - the affected deviceinPorts - the input portsoutPorts - the output portsprotected LinkCollectionCompiler.ForwardingInstructions createForwardingInstructions(org.onosproject.net.intent.LinkCollectionIntent intent, org.onosproject.net.PortNumber inPort, org.onosproject.net.DeviceId deviceId, Set<org.onosproject.net.PortNumber> outPorts, Set<org.onosproject.net.PortNumber> ingressPorts, Set<org.onosproject.net.PortNumber> egressPorts)
intent - the intent to compileinPort - the input portdeviceId - the current deviceoutPorts - the output portsingressPorts - the ingress portsegressPorts - the egress ports