public class NshProcessor extends Object implements ClassifierProcessorInterface
Constructor and Description |
---|
NshProcessor(ClassifierInterface classifierInterface,
ClassifierHandler classifierHandler,
boolean addClassifier) |
Modifier and Type | Method and Description |
---|---|
List<FlowDetails> |
processAceByProcessor(String nodeName,
ServiceFunctionForwarder theSff,
String theScfName,
String aclName,
String theIfName,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.Ace theAce,
Optional<RspName> rspName)
Install an ACE entry, belonging to the given ACL, on the SFF identified through the specified nodeName.
|
protected List<FlowDetails> |
processReverseRsp(RspName theRspName,
String theScfName,
String theAclName,
String theNodeName,
String theRuleName,
long port,
ServiceFunctionForwarder theSff)
Add the classifier flows for reverse RSPs.
|
protected Optional<FlowDetails> |
processReverseRspRelayFlow(String nodeName,
ServiceFunctionForwarder theSff,
SfcNshHeader reverseNsh,
String theFlowKey)
Return a FlowDetails object that represent the relay flow - i.e.
|
public NshProcessor(ClassifierInterface classifierInterface, ClassifierHandler classifierHandler, boolean addClassifier)
public List<FlowDetails> processAceByProcessor(String nodeName, ServiceFunctionForwarder theSff, String theScfName, String aclName, String theIfName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.Ace theAce, Optional<RspName> rspName)
processAceByProcessor
in interface ClassifierProcessorInterface
nodeName
- the compute node data-plane ID where the ACL is about to be writtentheSff
- the SFF to which the classifier is connectedtheScfName
- the name of the classifieraclName
- the name of the ACLtheIfName
- the interface we want to classifytheAce
- the ACEFlowDetails
having all the generated flows, which will be later installedprotected List<FlowDetails> processReverseRsp(RspName theRspName, String theScfName, String theAclName, String theNodeName, String theRuleName, long port, ServiceFunctionForwarder theSff)
theRspName
- the RSP from which we want to derive the reverse RSPtheScfName
- the name of the classifier who will process this reverse RSP
traffictheAclName
- the name of the ACLtheNodeName
- the compute node name where we will install the classifier
flows for the reverse RSPtheRuleName
- the name of the ACEport
- the output port of the classifier nodetheSff
- the SFF to which the classifier is connectedFlowDetails
having all the generated flows,
which will be later installedprotected Optional<FlowDetails> processReverseRspRelayFlow(String nodeName, ServiceFunctionForwarder theSff, SfcNshHeader reverseNsh, String theFlowKey)
nodeName
- the nodeName where the flow will be installed. Should be on
the first SFF of the chain - last of the reverse chain.theSff
- the SFF name where the flow will be installedreverseNsh
- the SfcNshHeader
object having the related data for
the reverse chaintheFlowKey
- the name of the analogous 'in' flowFlowDetails
object if possible, and empty Optional
otherwiseCopyright © 2017 OpenDaylight. All rights reserved.