@Service public class SfcManager extends Object implements SfcService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.ApplicationId |
appId |
protected org.onosproject.core.CoreService |
coreService |
protected FlowClassifierService |
flowClassifierService |
protected org.onosproject.store.service.DistributedSet<Integer> |
nshSpiIdFreeList |
protected org.onosproject.core.IdGenerator |
nshSpiIdGenerator |
protected org.onosproject.store.service.EventuallyConsistentMap<PortChainId,Integer> |
nshSpiPortChainMap |
protected org.onosproject.net.packet.PacketService |
packetService |
protected org.onosproject.store.service.EventuallyConsistentMap<PortChainId,List<FiveTuple>> |
portChainFiveTupleMap |
protected PortChainService |
portChainService |
protected PortPairGroupService |
portPairGroupService |
protected org.onosproject.sfc.manager.impl.SfcManager.SfcPacketProcessor |
processor |
protected org.onosproject.store.service.StorageService |
storageService |
protected VirtualPortService |
virtualPortService |
protected VtnRscService |
vtnRscService |
| Constructor and Description |
|---|
SfcManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
protected int |
getNshServicePathId(LoadBalanceId id,
int nshSpiId)
Encapsulate 5 bit load balance id to nsh spi.
|
void |
onFlowClassifierCreated(FlowClassifier flowClassifier)
When flow-classifier is created, check whether Forwarding Rule needs to
be updated in OVS.
|
void |
onFlowClassifierDeleted(FlowClassifier flowClassifier)
When flow-classifier is deleted, check whether Forwarding Rule needs to
be updated in OVS.
|
void |
onPortChainCreated(PortChain portChain)
When port-chain is created, check whether Forwarding Rule needs to be
updated in OVS.
|
void |
onPortChainDeleted(PortChain portChain)
When port-chain is deleted, check whether Forwarding Rule needs to be
updated in OVS.
|
void |
onPortPairCreated(PortPair portPair)
When port-pair is created, check whether Forwarding Rule needs to be
updated in OVS.
|
void |
onPortPairDeleted(PortPair portPair)
When port-pair is deleted, check whether Forwarding Rule needs to be
updated in OVS.
|
void |
onPortPairGroupCreated(PortPairGroup portPairGroup)
When port-pair-group is created, check whether Forwarding Rule needs to
be updated in OVS.
|
void |
onPortPairGroupDeleted(PortPairGroup portPairGroup)
When port-pair-group is deleted, check whether Forwarding Rule needs to
be updated in OVS.
|
@Reference(cardinality=MANDATORY_UNARY) protected VtnRscService vtnRscService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.packet.PacketService packetService
@Reference(cardinality=MANDATORY_UNARY) protected PortChainService portChainService
@Reference(cardinality=MANDATORY_UNARY) protected PortPairGroupService portPairGroupService
@Reference(cardinality=MANDATORY_UNARY) protected FlowClassifierService flowClassifierService
@Reference(cardinality=MANDATORY_UNARY) protected VirtualPortService virtualPortService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
protected org.onosproject.sfc.manager.impl.SfcManager.SfcPacketProcessor processor
protected org.onosproject.core.ApplicationId appId
protected org.onosproject.core.IdGenerator nshSpiIdGenerator
protected org.onosproject.store.service.EventuallyConsistentMap<PortChainId,Integer> nshSpiPortChainMap
protected org.onosproject.store.service.EventuallyConsistentMap<PortChainId,List<FiveTuple>> portChainFiveTupleMap
protected org.onosproject.store.service.DistributedSet<Integer> nshSpiIdFreeList
@Activate public void activate()
@Deactivate public void deactivate()
public void onPortPairCreated(PortPair portPair)
SfcServiceonPortPairCreated in interface SfcServiceportPair - port-pairpublic void onPortPairDeleted(PortPair portPair)
SfcServiceonPortPairDeleted in interface SfcServiceportPair - port-pairpublic void onPortPairGroupCreated(PortPairGroup portPairGroup)
SfcServiceonPortPairGroupCreated in interface SfcServiceportPairGroup - port-pair-grouppublic void onPortPairGroupDeleted(PortPairGroup portPairGroup)
SfcServiceonPortPairGroupDeleted in interface SfcServiceportPairGroup - port-pair-grouppublic void onFlowClassifierCreated(FlowClassifier flowClassifier)
SfcServiceonFlowClassifierCreated in interface SfcServiceflowClassifier - flow-classifierpublic void onFlowClassifierDeleted(FlowClassifier flowClassifier)
SfcServiceonFlowClassifierDeleted in interface SfcServiceflowClassifier - flow-classifierpublic void onPortChainCreated(PortChain portChain)
SfcServiceonPortChainCreated in interface SfcServiceportChain - port-chainpublic void onPortChainDeleted(PortChain portChain)
SfcServiceonPortChainDeleted in interface SfcServiceportChain - port-chainprotected int getNshServicePathId(LoadBalanceId id, int nshSpiId)
id - load balance identifiernshSpiId - nsh service path index