Merge "Bug 6297: Change subscriber's RLOC selection algo"
[lispflowmapping.git] / mappingservice / southbound / src / main / java / org / opendaylight / lispflowmapping / southbound / lisp / LispSouthboundHandler.java
index 38793b5b6adcf6523c115b181fe09e0ef088cb60..dba899a532b299af0db0a43e37ec82151807d430 100644 (file)
@@ -94,7 +94,6 @@ public class LispSouthboundHandler extends SimpleChannelInboundHandler<DatagramP
     private SimpleMapCache smc;
     private AuthenticationKeyDataListener authenticationKeyDataListener;
     private DataStoreBackEnd dsbe;
-    private boolean isReadFromChannelEnabled = true;
 
     public LispSouthboundHandler(LispSouthboundPlugin lispSbPlugin) {
         this.lispSbPlugin = lispSbPlugin;
@@ -499,13 +498,11 @@ public class LispSouthboundHandler extends SimpleChannelInboundHandler<DatagramP
 
     @Override
     protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) throws Exception {
-        if (isReadFromChannelEnabled) {
-            if (LOG.isTraceEnabled()) {
-                LOG.trace("Received UDP packet from {}:{} with content:\n{}", msg.sender().getHostString(),
-                        msg.sender().getPort(), ByteBufUtil.prettyHexDump(msg.content()));
-            }
-            handlePacket(msg);
+        if (LOG.isTraceEnabled()) {
+            LOG.trace("Received UDP packet from {}:{} with content:\n{}", msg.sender().getHostString(),
+                    msg.sender().getPort(), ByteBufUtil.prettyHexDump(msg.content()));
         }
+        handlePacket(msg);
     }
 
     @Override
@@ -567,10 +564,6 @@ public class LispSouthboundHandler extends SimpleChannelInboundHandler<DatagramP
         dsbe = new DataStoreBackEnd(dataBroker);
     }
 
-    public void setIsReadFromChannelEnabled(boolean isReadFromChannelEnabled) {
-        this.isReadFromChannelEnabled = isReadFromChannelEnabled;
-    }
-
     public void setMapRegisterCacheTimeout(long mapRegisterCacheTimeout) {
         this.mapRegisterCacheTimeout = mapRegisterCacheTimeout;
     }