public final class SfcProviderServiceForwarderAPI extends Object
It is normally called from onDataChanged() through a executor service. We need to use an executor service because we can not operate on a datastore while on onDataChanged() context.
ServiceFunctionListener
Modifier and Type | Method and Description |
---|---|
static boolean |
addPathToServiceForwarderState(RenderedServicePath renderedServicePath)
We add the path name to the operational store of each SFF.
|
static boolean |
deletePathFromServiceForwarderState(List<RspName> renderedServicePaths)
Delete the given list of service paths from the SFF operational state.
|
static boolean |
deletePathFromServiceForwarderState(RspName rspName)
When a SFF is deleted we need to delete all SFPs from the associated SFF.
|
static boolean |
deletePathFromServiceForwarderState(ServiceFunctionPath serviceFunctionPath)
When a SFF is deleted we need to delete all SFPs from the associated SFF
operational state.
|
static boolean |
deleteServiceFunctionForwarder(SffName serviceFunctionForwarderName)
This method deletes a SFF from the datastore.
|
static boolean |
deleteServiceFunctionForwarderState(SffName sffName)
This method deletes the operational state for a service function.
|
static List<SffDataPlaneLocator> |
getNonSfDataPlaneLocators(ServiceFunctionForwarder sff)
Return a list of SffDataPlaneLocator that are not used by any SF, which
is determined by looking at the Sff.SfDictionary.SffSfDpl.SffDpl.
|
static SffName |
getSffName(String nodeName) |
static ConnectedSffDictionary |
getSffSffConnectedDictionary(SffName sffName,
SffName dstSffName) |
static boolean |
putServiceFunctionForwarder(ServiceFunctionForwarder sff)
This method creates a SFF in the data store.
|
static ServiceFunctionForwarders |
readAllServiceFunctionForwarders()
Read all Service Function Forwarders devices.
|
static List<RspName> |
readRspNamesFromSffState(SffName sffName)
Returns the list of
RspName anchored by a SFF. |
static ServiceFunctionForwarder |
readServiceFunctionForwarder(SffName serviceFunctionForwarderName)
This method reads a SFF from the datastore.
|
static SffDataPlaneLocator |
readServiceFunctionForwarderDataPlaneLocator(SffName sffName,
SffDataPlaneLocatorName sffLocatorName)
This method searches for a data plane locator of a given name within a
SFF.
|
static List<SffServicePath> |
readSffState(SffName sffName)
Returns the list of SFPs anchored by a SFF.
|
public static boolean putServiceFunctionForwarder(ServiceFunctionForwarder sff)
sff
- SFF objectpublic static SffDataPlaneLocator readServiceFunctionForwarderDataPlaneLocator(SffName sffName, SffDataPlaneLocatorName sffLocatorName)
sffName
- SFF namesffLocatorName
- SFF data plane locator namepublic static ServiceFunctionForwarder readServiceFunctionForwarder(SffName serviceFunctionForwarderName)
serviceFunctionForwarderName
- SFF namepublic static boolean deleteServiceFunctionForwarder(SffName serviceFunctionForwarderName)
serviceFunctionForwarderName
- SFF namepublic static ServiceFunctionForwarders readAllServiceFunctionForwarders()
public static boolean addPathToServiceForwarderState(RenderedServicePath renderedServicePath)
renderedServicePath
- RSP Objectpublic static boolean deletePathFromServiceForwarderState(ServiceFunctionPath serviceFunctionPath)
serviceFunctionPath
- SFP objectpublic static boolean deletePathFromServiceForwarderState(List<RspName> renderedServicePaths)
renderedServicePaths
- String List of Service Path namespublic static boolean deletePathFromServiceForwarderState(RspName rspName)
rspName
- SFP objectpublic static boolean deleteServiceFunctionForwarderState(SffName sffName)
sffName
- SFF namepublic static List<SffServicePath> readSffState(SffName sffName)
sffName
- SFF namepublic static List<RspName> readRspNamesFromSffState(SffName sffName)
RspName
anchored by a SFF.sffName
- the SFF name.RspName
.public static List<SffDataPlaneLocator> getNonSfDataPlaneLocators(ServiceFunctionForwarder sff)
sff
- - The SFF to processpublic static ConnectedSffDictionary getSffSffConnectedDictionary(SffName sffName, SffName dstSffName)
Copyright © 2017 OpenDaylight. All rights reserved.