public class ClassifierHandler extends Object
Constructor and Description |
---|
ClassifierHandler() |
Modifier and Type | Method and Description |
---|---|
FlowDetails |
addRspRelatedFlowIntoNode(String nodeName,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.FlowBuilder flow,
long rspId)
Adds RSP related.
|
String |
buildFlowKeyName(String scfName,
String aclName,
String aceName,
String type)
Build the name of the FlowKey given the names of the classifier, ACL,
ACE, and the type of flow.
|
FlowDetails |
deleteFlowFromTable(String nodeName,
String flowKey,
short tableID)
Deletes flow from table.
|
Optional<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl> |
extractAcl(ServiceFunctionClassifier scf)
Extract ACL.
|
Optional<String> |
getInterfaceNameFromClassifier(SclServiceFunctionForwarder theClassifier)
Get the name of the interface we want to classify.
|
boolean |
usesLogicalInterfaces(ServiceFunctionForwarder theSff)
Uses Logical Interfaces.
|
public String buildFlowKeyName(String scfName, String aclName, String aceName, String type)
scfName
- the name of the classifieraclName
- the name of the ACLaceName
- the name of the ACEtype
- the type of flow. The possible types are: 'in', 'out', and
'relay'public Optional<String> getInterfaceNameFromClassifier(SclServiceFunctionForwarder theClassifier)
theClassifier
- the classifier from which we want the InterfaceNamepublic FlowDetails deleteFlowFromTable(String nodeName, String flowKey, short tableID)
nodeName
- the node from which the flow will be deletedflowKey
- the key of the flow we want to deletetableID
- the table from which we want to delete the flowFlowDetails
object that identifies the desired flowpublic FlowDetails addRspRelatedFlowIntoNode(String nodeName, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.FlowBuilder flow, long rspId)
nodeName
- the node in which the flow will be installedflow
- the flow to installrspId
- the RSP path ID to which the flow belongs toFlowDetails
object that identifies the desired flowpublic boolean usesLogicalInterfaces(ServiceFunctionForwarder theSff)
theSff
- the ServiceFunctionForwarder
to which the classifier
is connected topublic Optional<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl> extractAcl(ServiceFunctionClassifier scf)
scf
- the SCF classifier objectCopyright © 2017 OpenDaylight. All rights reserved.