public class VxlanGreConntrackBasedSnatService extends ConntrackBasedSnatService
DNAT_CT_STATE, DNAT_CT_STATE_MASK, SNAT_CT_STATE, SNAT_CT_STATE_MASK, TRACKED_NEW_CT_MASK, TRACKED_NEW_CT_STATEdataBroker, eventCallbacks, fibManager, idManager, interfaceManager, itmManager, mdsalManager, naptSwitchSelector, natDataUtil, odlInterfaceRpcService, txRunner, vpnFootprintService| Constructor and Description |
|---|
VxlanGreConntrackBasedSnatService(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,
ExternalRoutersListener externalRouterListener,
IElanService elanManager,
org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager,
IVpnFootprintService vpnFootprintService,
IFibManager fibManager,
NatDataUtil natDataUtil,
org.opendaylight.genius.datastoreutils.listeners.DataTreeEventCallbackRegistrar eventCallbacks,
NatOverVxlanUtil natOverVxlanUtil) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCentralizedRouter(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId)
Adds flows for centralized switch for the dpnId.
|
boolean |
addCentralizedRouterAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId)
Adds flows for centralized switch for all dpns having ports on the router subnet.
|
protected void |
addInboundEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
Long extNeVpnId,
List<ExternalIps> externalIps,
int elanId) |
protected void |
addNaptPfibFlowForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId,
Long extNetVpnId) |
protected void |
addOutboundTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
Long extNetVpnId,
List<ExternalIps> externalIps,
int elanId) |
protected void |
addOutboundTblTrackEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId,
Long extNetVpnId) |
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.
|
protected void |
addSnatMissEntry(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId,
String routerName,
BigInteger primarySwitchId) |
protected void |
addSnatSpecificEntriesForNaptSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId) |
protected void |
addTerminatingServiceTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
String routerName,
Long routerId,
int elanId) |
boolean |
removeCentralizedRouter(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId)
Removes flows for centralized switch for the dpnId.
|
boolean |
removeCentralizedRouterAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId)
Removes flows for centralized switch for all dpns having ports on the router subnet.
|
protected void |
removeInboundEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
List<ExternalIps> externalIps) |
protected void |
removeNaptPfibFlowForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId,
Long extNetVpnId) |
protected void |
removeOutboundTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
List<ExternalIps> externalIps) |
protected void |
removeOutboundTblTrackEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId) |
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.
|
protected void |
removeSnatMissEntry(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId,
String routerName) |
protected void |
removeSnatSpecificEntriesForNaptSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId) |
protected void |
removeTerminatingServiceTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId) |
addInboundEntry, addNaptPfibEntry, addNaptPfibFlow, addOutboundTblEntry, addOutboundTblTrackEntry, addSnatMissEntryForPrimrySwch, addSnatSpecificEntriesForNonNaptSwitch, removeInboundEntry, removeNaptPfibEntry, removeNaptPfibFlow, removeOutboundTblEntry, removeOutboundTblTrackEntry, removeSnatMissEntryForPrimrySwch, removeSnatSpecificEntriesForNonNaptSwitchaddCommonEntriesForNaptSwitch, addCommonEntriesForNonNaptSwitch, addDefaultFibRouteForSNAT, addInboundFibEntry, addInboundTerminatingServiceTblEntry, addSnatCommonEntriesForNaptSwitch, addSnatCommonEntriesForNonNaptSwitch, addTerminatingServiceTblEntry, close, createGroupId, getDataBroker, getFlowRef, getGroupIdKey, handleRouterUpdate, init, removeCommonEntriesForNaptSwitch, removeCommonEntriesForNonNaptSwitch, removeDefaultFibRouteForSNAT, removeInboundFibEntry, removeInboundTerminatingServiceTblEntry, removeMipAdjacencies, removeSnatCommonEntriesForNaptSwitch, removeSnatCommonEntriesForNonNaptSwitch, removeTerminatingServiceTblEntrypublic VxlanGreConntrackBasedSnatService(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,
ExternalRoutersListener externalRouterListener,
IElanService elanManager,
org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager,
IVpnFootprintService vpnFootprintService,
IFibManager fibManager,
NatDataUtil natDataUtil,
org.opendaylight.genius.datastoreutils.listeners.DataTreeEventCallbackRegistrar eventCallbacks,
NatOverVxlanUtil natOverVxlanUtil)
public boolean addSnatAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId)
SnatServiceListeneraddSnatAllSwitch in interface SnatServiceListeneraddSnatAllSwitch in class AbstractSnatServiceconfTx - 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
SnatServiceListenerremoveSnatAllSwitch in interface SnatServiceListenerremoveSnatAllSwitch in class AbstractSnatServiceconfTx - The transaction to use.routers - the router.primarySwitchId - the primaryswitchIdExecutionExceptionInterruptedExceptionpublic boolean addCentralizedRouterAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId)
SnatServiceListeneraddCentralizedRouterAllSwitch in interface SnatServiceListeneraddCentralizedRouterAllSwitch in class AbstractSnatServiceconfTx - The transaction to use.routers - the router.primarySwitchId - the primaryswitchId.public boolean removeCentralizedRouterAllSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId)
throws ExecutionException,
InterruptedException
SnatServiceListenerremoveCentralizedRouterAllSwitch in interface SnatServiceListenerremoveCentralizedRouterAllSwitch in class AbstractSnatServiceconfTx - The transaction to use.routers - the router.primarySwitchId - the primaryswitchId.ExecutionExceptionInterruptedExceptionpublic boolean addCentralizedRouter(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId)
SnatServiceListeneraddCentralizedRouter in interface SnatServiceListeneraddCentralizedRouter in class AbstractSnatServiceconfTx - The transaction to use.routers - the router.primarySwitchId - the primaryswitchId.dpnId - the dpnId for which the flows needs to be added.public boolean removeCentralizedRouter(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId)
throws ExecutionException,
InterruptedException
SnatServiceListenerremoveCentralizedRouter in interface SnatServiceListenerremoveCentralizedRouter in class AbstractSnatServiceconfTx - The transaction to use.routers - the router.primarySwitchId - the primaryswitchId.dpnId - the dpnId for which the flows needs to be removed.ExecutionExceptionInterruptedExceptionpublic boolean addSnat(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId)
SnatServiceListeneraddSnat in interface SnatServiceListeneraddSnat in class AbstractSnatServiceconfTx - 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
SnatServiceListenerremoveSnat in interface SnatServiceListenerremoveSnat in class AbstractSnatServiceconfTx - The transaction to use.routers - the router.primarySwitchId - the primaryswitchId.dpnId - the dpnId for which the flows needs to be removed.ExecutionExceptionInterruptedExceptionprotected void addSnatSpecificEntriesForNaptSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId)
addSnatSpecificEntriesForNaptSwitch in class ConntrackBasedSnatServiceprotected void removeSnatSpecificEntriesForNaptSwitch(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId)
throws ExecutionException,
InterruptedException
removeSnatSpecificEntriesForNaptSwitch in class ConntrackBasedSnatServiceExecutionExceptionInterruptedExceptionprotected void addOutboundTblTrackEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId,
Long extNetVpnId)
protected void removeOutboundTblTrackEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId)
throws ExecutionException,
InterruptedException
protected void addOutboundTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
Long extNetVpnId,
List<ExternalIps> externalIps,
int elanId)
protected void removeOutboundTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
List<ExternalIps> externalIps)
throws ExecutionException,
InterruptedException
protected void addNaptPfibFlowForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId,
Long extNetVpnId)
protected void removeNaptPfibFlowForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
Routers routers,
BigInteger dpnId,
Long extNetVpnId)
throws ExecutionException,
InterruptedException
protected void addInboundEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
Long extNeVpnId,
List<ExternalIps> externalIps,
int elanId)
protected void removeInboundEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
long routerId,
List<ExternalIps> externalIps)
throws ExecutionException,
InterruptedException
protected void addTerminatingServiceTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
String routerName,
Long routerId,
int elanId)
protected void removeTerminatingServiceTblEntryForVxlanGre(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId)
throws ExecutionException,
InterruptedException
protected void addSnatMissEntry(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId,
String routerName,
BigInteger primarySwitchId)
addSnatMissEntry in class AbstractSnatServiceprotected void removeSnatMissEntry(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
BigInteger dpnId,
Long routerId,
String routerName)
throws ExecutionException,
InterruptedException
removeSnatMissEntry in class AbstractSnatServiceExecutionExceptionInterruptedExceptionCopyright © 2019 OpenDaylight. All rights reserved.