Bug 5239: Fix IID Source/Dest lookup 46/34146/2
authorFlorin Coras <fcoras@cisco.com>
Fri, 5 Feb 2016 11:12:19 +0000 (12:12 +0100)
committerFlorin Coras <fcoras@cisco.com>
Fri, 5 Feb 2016 12:03:37 +0000 (13:03 +0100)
commita5fc5fb68dc91eb1dec1339c53271535e3c37a2d
tree825a92fb676f57557883ee43504e3393ddfbe7c4
parent911ae8be831e4c4a3a41854260ea74d93086ab7e
Bug 5239: Fix IID Source/Dest lookup

The issue is that the source EID is passed to the map-cache lookup as an
IP, not as an IP-prefix, and therefore it is not masked accordingly when
performing the longest prefix match. This patch updates the
MaskUtil.normalize() code to convert IPs to an IP-prefixes.

Change-Id: Iafd7bef2ef0911e6cbc61b8315208eb639e41766
Signed-off-by: Florin Coras <fcoras@cisco.com>
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/mapcache/MultiTableMapCache.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/util/LispAddressUtil.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/util/MaskUtil.java