From: Lorand Jakab Date: Thu, 21 Apr 2016 06:41:38 +0000 (+0300) Subject: Remove handleMapRegister(MapRegister, boolean) X-Git-Tag: release/boron~137^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=5466fd7925bbb9a514ac60e0097dfbb972372dfb;p=lispflowmapping.git Remove handleMapRegister(MapRegister, boolean) The boolean variable is no longer used in the method, and the method itself was only used in commented out integration tests, so there is no reason to keep it around. (It was ugly to begin with.) Check SFC as well, it's not used there either. Change-Id: Id3aa0d7aadfd8f354e3cf5af2ab6b980dda0939f Signed-off-by: Lorand Jakab --- diff --git a/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java b/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java index 3fae288c2..b8f4f143e 100644 --- a/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java +++ b/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java @@ -994,7 +994,7 @@ public class MappingServiceIntegrationTest extends AbstractMdsalTestBase { etlr.getLocatorRecord().add(record.build()); mapRegister.setMappingRecordItem(new ArrayList()); mapRegister.getMappingRecordItem().add(new MappingRecordItemBuilder().setMappingRecord(etlr.build()).build()); - lms.handleMapRegister(mapRegister.build(), false); + lms.handleMapRegister(mapRegister.build()); // Get mapping using NB interface. No IID used URL url = createGetMappingIPv4URL(0, eid, mask); @@ -1036,7 +1036,7 @@ public class MappingServiceIntegrationTest extends AbstractMdsalTestBase { etlr.getLocatorRecord().add(record.build()); mapRegister.setMappingRecordItem(new ArrayList()); mapRegister.getMappingRecordItem().add(new MappingRecordItemBuilder().setMappingRecord(etlr.build()).build()); - lms.handleMapRegister(mapRegister.build(), false); + lms.handleMapRegister(mapRegister.build()); // Delete mapping using NB interface. No IID used URL url = createDeleteMappingIPv4URL(0, eid, mask); @@ -1094,7 +1094,7 @@ public class MappingServiceIntegrationTest extends AbstractMdsalTestBase { etlr.getLocatorRecord().add(record.build()); mapRegister.setMappingRecordItem(new ArrayList()); mapRegister.getMappingRecordItem().add(new MappingRecordItemBuilder().setMappingRecord(etlr.build()).build()); - lms.handleMapRegister(mapRegister.build(), false); + lms.handleMapRegister(mapRegister.build()); // Get mapping using NB interface. No IID used URL url = createGetMappingSourceDestURL(address1.getIpv4Address().getAfi(), diff --git a/mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java b/mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java index 8f09c3403..60e03c4d8 100644 --- a/mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java +++ b/mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java @@ -142,7 +142,6 @@ public class LispMappingService implements IFlowMapping, BindingAwareProvider, I // After this invocation we assume that the thread local is filled with the reply if (tlsMapRequest.get() != null) { SendMapRequestInputBuilder smrib = new SendMapRequestInputBuilder(); - new MapRequestBuilder(tlsMapRequest.get().getLeft()); smrib.setMapRequest(new MapRequestBuilder(tlsMapRequest.get().getLeft()).build()); smrib.setTransportAddress(tlsMapRequest.get().getRight()); getLispSB().sendMapRequest(smrib.build()); @@ -163,17 +162,6 @@ public class LispMappingService implements IFlowMapping, BindingAwareProvider, I return tlsMapNotify.get(); } - public Pair> handleMapRegister(MapRegister mapRegister, boolean smr) { - LOG.debug("DAO: Adding mapping for {}", - LispAddressStringifier.getString(mapRegister.getMappingRecordItem().get(0) - .getMappingRecord().getEid())); - - tlsMapNotify.set(null); - mapServer.handleMapRegister(mapRegister); - // After this invocation we assume that the thread local is filled with the reply - return tlsMapNotify.get(); - } - public void setShouldAuthenticate(boolean shouldAuthenticate) { this.shouldAuthenticate = shouldAuthenticate; this.mapResolver.setShouldAuthenticate(shouldAuthenticate);