- if(removedReasonFlag.isIDLETIMEOUT()) {
- LOG.debug("Received flow removed notification due to idleTimeout of flow from switch for flowref {}",switchFlowRef);
- //Remove the SourceIP:Port key from the Napt packet handler map.
- String internalIpPortKey = internalIpv4HostAddress + ":" + internalPortNumber;
- naptPacketInHandler.removeIncomingPacketMap(internalIpPortKey);
-
- //Remove the mapping of internal fixed ip/port to external ip/port from the datastore.
- SessionAddress internalSessionAddress = new SessionAddress(internalIpv4HostAddress, internalPortNumber);
- naptManager.releaseIpExtPortMapping(routerId, internalSessionAddress, protocol);
- } else {
- LOG.debug("Received flow removed notification due to flowdelete from switch for flowref {}",switchFlowRef);
- }
+ LOG.debug("Received flow removed notification due to idleTimeout of flow from switch for flowref {}",switchFlowRef);
+ //Remove the SourceIP:Port key from the Napt packet handler map.
+ String internalIpPortKey = internalIpv4HostAddress + ":" + internalPortNumber;
+ naptPacketInHandler.removeIncomingPacketMap(internalIpPortKey);