Class NaptEventHandler
- java.lang.Object
-
- org.opendaylight.netvirt.natservice.internal.NaptEventHandler
-
@Singleton public class NaptEventHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NaptEventHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, NaptManager naptManager, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService pktService, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpc, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, IElanService elanManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService salFlowServiceRpc, NatOverVxlanUtil natOverVxlanUtil)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildAndInstallNatFlows(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.yangtools.yang.common.Uint32 bgpVpnId, SessionAddress actualSourceAddress, SessionAddress translatedSourceAddress, NAPTEntryEvent.Protocol protocol, java.lang.String extGwMacAddress)
protected @org.eclipse.jdt.annotation.Nullable byte[]
buildNaptPacketOut(org.opendaylight.genius.mdsalutil.packet.Ethernet etherPkt)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowRef
getFlowRef(org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flow)
void
handleEvent(NAPTEntryEvent naptEntryEvent)
void
handleFlowRemoved(NAPTEntryEvent naptEntryEvent, org.opendaylight.yangtools.yang.common.Uint32 routerId, java.lang.String sourceIPPortKey, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
-
-
Constructor Detail
-
NaptEventHandler
@Inject public NaptEventHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, NaptManager naptManager, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService pktService, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpc, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, IElanService elanManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService salFlowServiceRpc, NatOverVxlanUtil natOverVxlanUtil)
-
-
Method Detail
-
handleEvent
public void handleEvent(NAPTEntryEvent naptEntryEvent)
-
buildAndInstallNatFlows
public void buildAndInstallNatFlows(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.yangtools.yang.common.Uint32 bgpVpnId, SessionAddress actualSourceAddress, SessionAddress translatedSourceAddress, NAPTEntryEvent.Protocol protocol, java.lang.String extGwMacAddress)
-
getFlowRef
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowRef getFlowRef(org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flow)
-
buildNaptPacketOut
protected @org.eclipse.jdt.annotation.Nullable byte[] buildNaptPacketOut(org.opendaylight.genius.mdsalutil.packet.Ethernet etherPkt)
-
handleFlowRemoved
public void handleFlowRemoved(NAPTEntryEvent naptEntryEvent, org.opendaylight.yangtools.yang.common.Uint32 routerId, java.lang.String sourceIPPortKey, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
-