Bug 6536: Allow propagation of SB notifications on slaves
[lispflowmapping.git] / mappingservice / implementation / src / main / java / org / opendaylight / lispflowmapping / implementation / LispMappingService.java
index 9e7bbd5de73b74b3a0a213ab62b36dd18f4c0aa6..f3e57b3a669de7124b940629222ba1fac3df9190 100644 (file)
@@ -286,13 +286,13 @@ public class LispMappingService implements IFlowMapping, IMapRequestResultHandle
 
     @Override
     public void instantiateServiceInstance() {
-        mapServer.setIsMaster(true);
+        mapService.setIsMaster(true);
     }
 
     @Override
     public ListenableFuture<Void> closeServiceInstance() {
-        if (mapServer != null) {
-            mapServer.setIsMaster(false);
+        if (mapService != null) {
+            mapService.setIsMaster(false);
         }
         return Futures.<Void>immediateFuture(null);
     }