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)
SfcGeniusServiceManager
bindInterfacesOfServiceFunction
in interface SfcGeniusServiceManager
sfName
- the name of the service function.public void unbindInterfacesOfServiceFunction(String sfName)
SfcGeniusServiceManager
unbindInterfacesOfServiceFunction
in interface SfcGeniusServiceManager
sfName
- the name of the service function.public void unbindInterfaces(List<String> interfaceNames)
SfcGeniusServiceManager
unbindInterfaces
in interface SfcGeniusServiceManager
interfaceNames
- a list containing the name of the interfacespublic void bindNode(BigInteger dpnId)
SfcGeniusServiceManager
bindNode
in interface SfcGeniusServiceManager
dpnId
- the node DPN Id.public void unbindNode(BigInteger dpnId)
SfcGeniusServiceManager
unbindNode
in interface SfcGeniusServiceManager
dpnId
- the node DPN Id.public void interfaceStateUp(String interfaceName, BigInteger dpnId)
SfcGeniusServiceManager
interfaceStateUp
in interface SfcGeniusServiceManager
interfaceName
- 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.