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, 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 |
handleSnat(Routers routers,
BigInteger primarySwitchId,
BigInteger dpnId,
int addOrRemove)
Adds/removes snat flows for the dpnId.
|
boolean |
handleSnatAllSwitch(Routers routers,
BigInteger primarySwitchId,
int addOrRemove)
Adds/removes snat flows for all dpns having ports on the router subnet.
|
createOutboundTblEntry, createOutboundTblTrackEntry, installInboundEntry, installNaptPfibEntry, installNaptPfibFlow, installSnatMissEntryForPrimrySwch, installSnatSpecificEntriesForNaptSwitch, installSnatSpecificEntriesForNonNaptSwitch
close, createGroupId, getDataBroker, getFlowRef, getGroupIdKey, getTunnelInterfaceName, handleCentralizedRouter, handleCentralizedRouterAllSwitch, init, installCommonEntriesForNaptSwitch, installCommonEntriesForNonNaptSwitch, installDefaultFibRouteForSNAT, installInboundFibEntry, installInboundTerminatingServiceTblEntry, installSnatCommonEntriesForNaptSwitch, installSnatCommonEntriesForNonNaptSwitch, installSnatMissEntry, installTerminatingServiceTblEntry, removeMipAdjacencies, syncFlow
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 handleSnatAllSwitch(Routers routers, BigInteger primarySwitchId, int addOrRemove)
SnatServiceListener
handleSnatAllSwitch
in interface SnatServiceListener
handleSnatAllSwitch
in class AbstractSnatService
routers
- the router.primarySwitchId
- the primaryswitchIdaddOrRemove
- add or remove the flow.public boolean handleSnat(Routers routers, BigInteger primarySwitchId, BigInteger dpnId, int addOrRemove)
SnatServiceListener
handleSnat
in interface SnatServiceListener
handleSnat
in class AbstractSnatService
routers
- the router.primarySwitchId
- the primaryswitchId.dpnId
- the dpnId for which the flows needs to be added/removed.addOrRemove
- add or remove the flow.Copyright © 2019 OpenDaylight. All rights reserved.