summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VrfSubtableCustomizer.java2
-rwxr-xr-xlisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VrfSubtableCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VrfSubtableCustomizer.java
index 18eaef063..4bdea7e03 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VrfSubtableCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VrfSubtableCustomizer.java
@@ -87,7 +87,7 @@ public class VrfSubtableCustomizer extends FutureJVppCustomizer
.collect(Collectors.toList());
if (details.size() == 1) {
final OneEidTableMapDetails detail = details.get(0);
- builder.setTableId(Integer.valueOf(detail.dpTable).longValue());
+ builder.setTableId(Integer.toUnsignedLong(detail.dpTable));
LOG.debug("Attributes for {} successfully loaded", id);
}
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java
index 96ab9d3b0..72b70354b 100755
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java
@@ -155,7 +155,7 @@ public class RemoteMappingCustomizer extends FutureJVppCustomizer
return remoteLocator;
}).toArray(OneRemoteLocator[]::new);
- request.rlocNum = Integer.valueOf(rlocs.getLocator().size()).byteValue();
+ request.rlocNum = (byte) rlocs.getLocator().size();
}
getReply(getFutureJVpp().oneAddDelRemoteMapping(request).toCompletableFuture());