Fixing broken build cause by sfclisp compilation 30/21330/1
authorBrady Johnson <[email protected]>
Thu, 28 May 2015 14:06:22 +0000 (16:06 +0200)
committerBrady Johnson <[email protected]>
Thu, 28 May 2015 14:06:22 +0000 (16:06 +0200)
- The LispApplicationDataLCAFAddress API changed in this
  upstream change:
      https://git.opendaylight.org/gerrit/#/c/21251/
- Not sure if we should be using getLocalPortLow() or getLocalPortHigh()
  using Low for now.

Change-Id: Iff000b753576a9ad9a18b994c755be11e3962cd7
Signed-off-by: Brady Johnson <[email protected]>
sfclisp/src/main/java/org/opendaylight/sfc/sfc_lisp/provider/LispUtil.java

index 8072f9c08888d02c6ea6057fef3a4eca01773557..769074eafc1e966e6400a6c45685d40e95881eb3 100644 (file)
@@ -306,7 +306,7 @@ public class LispUtil {
     public static Ip createLocator(LcafApplicationData applicationData) {
         IpAddress ip = new IpAddress(new Ipv4Address(InetAddresses.fromInteger(
                 applicationData.getLcafApplicationDataAddr().getIpTos()).getHostAddress()));
-        Ip locatorType = new IpBuilder().setIp(ip).setPort(applicationData.getLcafApplicationDataAddr().getLocalPort())
+        Ip locatorType = new IpBuilder().setIp(ip).setPort(applicationData.getLcafApplicationDataAddr().getLocalPortLow())
                 .build();
         return locatorType;
     }