Add mapping record with port data add with fixed ip
[lispflowmapping.git] / mappingservice / neutron / src / main / java / org / opendaylight / lispflowmapping / neutron / mappingmanager / HostIdToRlocMapper.java
index f99567ec2dee48366736a9260ad4db7b82574b1b..5c8293387e379cc205be130d55b0b61878902667 100644 (file)
@@ -22,19 +22,11 @@ public class HostIdToRlocMapper {
     private static final Logger LOG = LoggerFactory.getLogger(HostIdToRlocMapper.class);
 
     private ConcurrentHashMap<String, List<Rloc>> mapper;
-    private static HostIdToRlocMapper instance;
 
-    private HostIdToRlocMapper() {
+    public HostIdToRlocMapper() {
         mapper = new ConcurrentHashMap();
     }
 
-    public static synchronized HostIdToRlocMapper getInstance() {
-        if (instance == null) {
-            instance = new HostIdToRlocMapper();
-        }
-        return instance;
-    }
-
     public synchronized void addMapping(String hostId, Rloc hostRloc) {
         List<Rloc> hostIdSpeceficRlocs = mapper.get(hostId);