public class SfcGeniusServiceManagerImpl extends Object implements SfcGeniusServiceManager
SFC service binding to logical interface is done through Genius Interface Manager via operation of the same name.
SFC service binding to a node is done through Genius ITM via "create/remove service terminating action".
When an interface becomes available after being unavailable due to a node/port transition, any RSPs on which associated service functions participate will be re-rendered.
| Constructor and Description |
|---|
SfcGeniusServiceManagerImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcProviderRegistry,
Executor executor)
Constructs a
SfcGeniusInterfaceServiceManager using the provided
DataBroker for data store operations, the
RpcProviderRegistry to access RPC services and the
Executor for asynchronous tasks. |
| Modifier and Type | Method and Description |
|---|---|
void |
bindInterfacesOfServiceFunction(String sfName)
Bind the interfaces of a service function to SFC service.
|
void |
bindNode(BigInteger dpnId)
Bind node to SFC service.
|
protected org.opendaylight.sfc.genius.impl.handlers.SfcGeniusRspHandler |
getSfcGeniusRspHandler(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction readWriteTransaction) |
protected org.opendaylight.sfc.genius.impl.handlers.SfcGeniusServiceHandler |
getSfcGeniusServiceHandler(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction readWriteTransaction) |
protected SfcGeniusSfReader |
getSfcGeniusSfReader(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction readWriteTransaction) |
void |
interfaceStateUp(String interfaceName,
BigInteger dpnId)
Interface becomes available at a node.
|
void |
unbindInterfaces(List<String> interfaceNames)
Unbind the specified interfaces.
|
void |
unbindInterfacesOfServiceFunction(String sfName)
Unbind the interfaces of a service function to SFC service.
|
void |
unbindNode(BigInteger dpnId)
Unbind node from SFC service.
|
public SfcGeniusServiceManagerImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcProviderRegistry,
Executor executor)
SfcGeniusInterfaceServiceManager using the provided
DataBroker for data store operations, the
RpcProviderRegistry to access RPC services and the
Executor for asynchronous tasks.dataBroker - the data broker for data store operations.rpcProviderRegistry - the RPC provider registry of services.executor - the executor where asynchronous tasks are executed.public void bindInterfacesOfServiceFunction(String sfName)
SfcGeniusServiceManagerbindInterfacesOfServiceFunction in interface SfcGeniusServiceManagersfName - the name of the service function.public void unbindInterfacesOfServiceFunction(String sfName)
SfcGeniusServiceManagerunbindInterfacesOfServiceFunction in interface SfcGeniusServiceManagersfName - the name of the service function.public void unbindInterfaces(List<String> interfaceNames)
SfcGeniusServiceManagerunbindInterfaces in interface SfcGeniusServiceManagerinterfaceNames - a list containing the name of the interfacespublic void bindNode(BigInteger dpnId)
SfcGeniusServiceManagerbindNode in interface SfcGeniusServiceManagerdpnId - the node DPN Id.public void unbindNode(BigInteger dpnId)
SfcGeniusServiceManagerunbindNode in interface SfcGeniusServiceManagerdpnId - the node DPN Id.public void interfaceStateUp(String interfaceName, BigInteger dpnId)
SfcGeniusServiceManagerinterfaceStateUp in interface SfcGeniusServiceManagerinterfaceName - the name of the interface.dpnId - the data plane id of the new node associated to the interface.protected org.opendaylight.sfc.genius.impl.handlers.SfcGeniusRspHandler getSfcGeniusRspHandler(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction readWriteTransaction)
protected SfcGeniusSfReader getSfcGeniusSfReader(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction readWriteTransaction)
protected org.opendaylight.sfc.genius.impl.handlers.SfcGeniusServiceHandler getSfcGeniusServiceHandler(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction readWriteTransaction)
Copyright © 2017 OpenDaylight. All rights reserved.