public abstract class SfcOfBaseProviderUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
SfcOfBaseProviderUtils() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addRsp(long rspId) |
String |
getDictPortInfoMac(ServiceFunctionForwarder sff,
ServiceFunctionDictionary dict)
Given an SFF object and SFF-SF dictionary entry, return the SFF Mac.
|
String |
getDictPortInfoPort(ServiceFunctionForwarder sff,
ServiceFunctionDictionary dict)
Given an SFF object and SFF-SF dictionary entry, return the switch port
string.
|
String |
getDplPortInfoMac(SffDataPlaneLocator dpl)
Given a possibly augmented SFF DPL, return the DPL mac address.
|
String |
getDplPortInfoPort(SffDataPlaneLocator dpl)
Given a possibly augmented SFF DPL, return the DPL switch port.
|
abstract Long |
getPortNumberFromName(String bridgeName,
String portName,
long rspId) |
abstract ServiceFunction |
getServiceFunction(SfName sfName,
long rspId) |
abstract ServiceFunctionForwarder |
getServiceFunctionForwarder(SffName sffName,
long rspId) |
abstract ServiceFunctionGroup |
getServiceFunctionGroup(String sfgName,
long rspId) |
abstract ServiceFunctionType |
getServiceFunctionType(SfName sfName,
long rspId) |
SfDataPlaneLocator |
getSfDataPlaneLocator(ServiceFunction sf,
SffName sffName)
Return the SfDataPlaneLocator on the SF that connects to the named SFF.
|
SfDataPlaneLocator |
getSfDataPlaneLocator(ServiceFunction sf,
SffSfDataPlaneLocator sffSfDpl)
Given a ServiceFunction get the SF DPL name from the
SffSfDataPlaneLocator and return the SF DPL.
|
String |
getSfDplMac(SfDataPlaneLocator sfDpl)
Return the mac address from a SF DPL, only if its a MAC DPL.
|
SffDataPlaneLocator |
getSffDataPlaneLocator(ServiceFunctionForwarder sff,
SffDataPlaneLocatorName dplName)
Return a named SffDataPlaneLocator on a SFF.
|
List<SffDataPlaneLocator> |
getSffDataPlaneLocators(SffName sffName,
long rspId)
Return a named SffDataPlaneLocator on a SFF.
|
String |
getSffDplMac(SffDataPlaneLocator sfDpl)
Return the mac address from a SFF DPL, only if its a MAC DPL.
|
abstract List<SffDataPlaneLocator> |
getSffNonSfDataPlaneLocators(ServiceFunctionForwarder sff) |
String |
getSffOpenFlowNodeName(ServiceFunctionForwarder sff)
Given an SFF object, return the augmented OpenFlow NodeName.
|
String |
getSffOpenFlowNodeName(SffName sffName,
long rspId)
Given an SFF name, return the augmented OpenFlow NodeName.
|
String |
getSffOpenFlowNodeName(SffName sffName,
long rspId,
DpnIdType dpnid)
Given an SFF name, return the augmented OpenFlow NodeName.
|
OfsPort |
getSffPortInfoFromDpl(SffDataPlaneLocator sffDpl)
Given a possibly augmented SFF DPL, return the augmented OfsPort object.
|
SffSfDataPlaneLocator |
getSffSfDataPlaneLocator(ServiceFunctionForwarder sff,
SfName sfName)
Return the named SF ServiceFunctionDictionary SffSfDataPlaneLocator from
the sff sf-dictionary list.
|
ServiceFunctionDictionary |
getSffSfDictionary(ServiceFunctionForwarder sff,
SfName sfName)
Return the named SF ServiceFunctionDictionary element from the sff
sf-dictionary list.
|
SffDataPlaneLocator |
getSffSfDictSffDpl(SfName sfName,
SffName sffName,
long rspId) |
String |
getSfLogicalInterfaceName(ServiceFunction sf)
Given a SF, retrieve the logical interface name.
|
abstract void |
removeRsp(long rspId) |
public abstract void addRsp(long rspId)
public abstract void removeRsp(long rspId)
public abstract ServiceFunction getServiceFunction(SfName sfName, long rspId)
public abstract ServiceFunctionType getServiceFunctionType(SfName sfName, long rspId)
public abstract ServiceFunctionForwarder getServiceFunctionForwarder(SffName sffName, long rspId)
public abstract ServiceFunctionGroup getServiceFunctionGroup(String sfgName, long rspId)
public abstract Long getPortNumberFromName(String bridgeName, String portName, long rspId)
public abstract List<SffDataPlaneLocator> getSffNonSfDataPlaneLocators(ServiceFunctionForwarder sff)
public SffDataPlaneLocator getSffDataPlaneLocator(ServiceFunctionForwarder sff, SffDataPlaneLocatorName dplName)
sff
- - The SFF to search indplName
- - The name of the DPL to look forpublic SfDataPlaneLocator getSfDataPlaneLocator(ServiceFunction sf, SffName sffName)
sf
- the ServiceFunction to search throughsffName
- the SFF name to search forpublic SfDataPlaneLocator getSfDataPlaneLocator(ServiceFunction sf, SffSfDataPlaneLocator sffSfDpl)
sf
- the ServiceFunction to search throughsffSfDpl
- The SffSf DPL to compare againstpublic SffSfDataPlaneLocator getSffSfDataPlaneLocator(ServiceFunctionForwarder sff, SfName sfName)
sff
- - The SFF to search insfName
- - The name of the DPL to look forpublic ServiceFunctionDictionary getSffSfDictionary(ServiceFunctionForwarder sff, SfName sfName)
sff
- the SFF to search throughsfName
- the SF name to look forpublic String getSfDplMac(SfDataPlaneLocator sfDpl)
sfDpl
- the SF DPL to processpublic String getSffDplMac(SffDataPlaneLocator sfDpl)
sfDpl
- the SFF DPL to processpublic String getDictPortInfoPort(ServiceFunctionForwarder sff, ServiceFunctionDictionary dict)
sff
- the SFF to processdict
- used to get the SFF DPL namepublic OfsPort getSffPortInfoFromDpl(SffDataPlaneLocator sffDpl)
sffDpl
- The SFF DPL to processpublic String getDplPortInfoPort(SffDataPlaneLocator dpl)
dpl
- the SFF DPL to processpublic String getDplPortInfoMac(SffDataPlaneLocator dpl)
dpl
- the SFF DPL to processpublic String getDictPortInfoMac(ServiceFunctionForwarder sff, ServiceFunctionDictionary dict)
sff
- The SFF to processdict
- contains the SFF DPL name to processpublic String getSffOpenFlowNodeName(SffName sffName, long rspId)
sffName
- The SFF name to processrspId
- the rsp the SFF is being processed onpublic String getSffOpenFlowNodeName(SffName sffName, long rspId, DpnIdType dpnid)
sffName
- The SFF name to processrspId
- the rsp the SFF is being processed ondpnid
- data plane node identifier for the switch. It is null when it
is not known; when provided, it is used directly to build the
openflow node namepublic String getSffOpenFlowNodeName(ServiceFunctionForwarder sff)
sff
- The SFF name to processpublic String getSfLogicalInterfaceName(ServiceFunction sf)
sf
- The service function to usepublic SffDataPlaneLocator getSffSfDictSffDpl(SfName sfName, SffName sffName, long rspId)
public List<SffDataPlaneLocator> getSffDataPlaneLocators(SffName sffName, long rspId)
sffName
- The SFF name to search inrspId
- rendered service path IDCopyright © 2017 OpenDaylight. All rights reserved.