public class FlatVlanConntrackBasedSnatService extends ConntrackBasedSnatService
DNAT_CT_STATE, DNAT_CT_STATE_MASK, SNAT_CT_STATE, SNAT_CT_STATE_MASK, TRACKED_NEW_CT_MASK, TRACKED_NEW_CT_STATE
dataBroker, eventCallbacks, fibManager, idManager, interfaceManager, itmManager, mdsalManager, naptSwitchSelector, natDataUtil, odlInterfaceRpcService, txRunner, vpnFootprintService
Constructor and Description |
---|
FlatVlanConntrackBasedSnatService(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmManager,
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService odlInterfaceRpcService,
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager,
NAPTSwitchSelector naptSwitchSelector,
org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager,
IVpnFootprintService vpnFootprintService,
IFibManager fibManager,
NatDataUtil natDataUtil,
org.opendaylight.genius.datastoreutils.listeners.DataTreeEventCallbackRegistrar eventCallbacks) |
Modifier and Type | Method and Description |
---|---|
boolean |
addSnat(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId)
Adds snat flows for the dpnId.
|
boolean |
addSnatAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId)
Adds snat flows for all dpns having ports on the router subnet.
|
boolean |
removeSnat(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId)
Removes snat flows for the dpnId.
|
boolean |
removeSnatAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId)
Removes snat flows for all dpns having ports on the router subnet.
|
addInboundEntry, addNaptPfibEntry, addNaptPfibFlow, addOutboundTblEntry, addOutboundTblTrackEntry, addSnatMissEntryForPrimrySwch, addSnatSpecificEntriesForNaptSwitch, addSnatSpecificEntriesForNonNaptSwitch, removeInboundEntry, removeNaptPfibEntry, removeNaptPfibFlow, removeOutboundTblEntry, removeOutboundTblTrackEntry, removeSnatMissEntryForPrimrySwch, removeSnatSpecificEntriesForNaptSwitch, removeSnatSpecificEntriesForNonNaptSwitch
addCentralizedRouter, addCentralizedRouterAllSwitch, addCommonEntriesForNaptSwitch, addCommonEntriesForNonNaptSwitch, addDefaultFibRouteForSNAT, addInboundFibEntry, addInboundTerminatingServiceTblEntry, addSnatCommonEntriesForNaptSwitch, addSnatCommonEntriesForNonNaptSwitch, addSnatMissEntry, addTerminatingServiceTblEntry, close, createGroupId, getDataBroker, getFlowRef, getGroupIdKey, handleRouterUpdate, init, removeCentralizedRouter, removeCentralizedRouterAllSwitch, removeCommonEntriesForNaptSwitch, removeCommonEntriesForNonNaptSwitch, removeDefaultFibRouteForSNAT, removeInboundFibEntry, removeInboundTerminatingServiceTblEntry, removeMipAdjacencies, removeSnatCommonEntriesForNaptSwitch, removeSnatCommonEntriesForNonNaptSwitch, removeSnatMissEntry, removeTerminatingServiceTblEntry
public FlatVlanConntrackBasedSnatService(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService odlInterfaceRpcService, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, NAPTSwitchSelector naptSwitchSelector, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, IVpnFootprintService vpnFootprintService, IFibManager fibManager, NatDataUtil natDataUtil, org.opendaylight.genius.datastoreutils.listeners.DataTreeEventCallbackRegistrar eventCallbacks)
public boolean addSnatAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, BigInteger primarySwitchId)
SnatServiceListener
addSnatAllSwitch
in interface SnatServiceListener
addSnatAllSwitch
in class AbstractSnatService
confTx
- The transaction to use.routers
- the router.primarySwitchId
- the primaryswitchIdpublic boolean removeSnatAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, BigInteger primarySwitchId) throws ExecutionException, InterruptedException
SnatServiceListener
removeSnatAllSwitch
in interface SnatServiceListener
removeSnatAllSwitch
in class AbstractSnatService
confTx
- The transaction to use.routers
- the router.primarySwitchId
- the primaryswitchIdExecutionException
InterruptedException
public boolean addSnat(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, BigInteger primarySwitchId, BigInteger dpnId)
SnatServiceListener
addSnat
in interface SnatServiceListener
addSnat
in class AbstractSnatService
confTx
- The transaction to use.routers
- the router.primarySwitchId
- the primaryswitchId.dpnId
- the dpnId for which the flows needs to be added.public boolean removeSnat(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, Routers routers, BigInteger primarySwitchId, BigInteger dpnId) throws ExecutionException, InterruptedException
SnatServiceListener
removeSnat
in interface SnatServiceListener
removeSnat
in class AbstractSnatService
confTx
- The transaction to use.routers
- the router.primarySwitchId
- the primaryswitchId.dpnId
- the dpnId for which the flows needs to be removed.ExecutionException
InterruptedException
Copyright © 2019 OpenDaylight. All rights reserved.