Magnesium platform upgrade
[lispflowmapping.git] / mappingservice / mapcache / src / main / java / org / opendaylight / lispflowmapping / mapcache / SimpleMapCache.java
index 4310e35cbd438c47b3a1ab9fad12bc1c38020965..7823d7fa3aecb62befb2ec1b0f91603544b6ea08 100644 (file)
@@ -45,7 +45,7 @@ public class SimpleMapCache implements ILispMapCache {
         if (eid.getVirtualNetworkId() == null) {
             return 0;
         } else {
-            return eid.getVirtualNetworkId().getValue();
+            return eid.getVirtualNetworkId().getValue().toJava();
         }
     }
 
@@ -116,8 +116,7 @@ public class SimpleMapCache implements ILispMapCache {
 
     @Override
     public Object getMapping(Eid srcEid, Eid dstEid) {
-        final XtrId xtrId = null;
-        return getMapping(dstEid, xtrId);
+        return getMapping(dstEid, (XtrId) null);
     }
 
     @Override