LispLocatorSetDetailsReplyDump dump = dumpOptional.get();
java.util.Optional<LispLocatorSetDetails> details = dump.lispLocatorSetDetails.stream()
- .filter(n -> keyName.equals(TranslateUtils.toString(n.locatorSetName)))
+ .filter(n -> keyName.equals(TranslateUtils.toString(n.lsName)))
.findFirst();
if (details.isPresent()) {
- final String name = TranslateUtils.toString(details.get().locatorSetName);
+ final String name = TranslateUtils.toString(details.get().lsName);
builder.setName(name);
builder.setKey(new LocatorSetKey(name));
return dumpOptional.get().lispLocatorSetDetails.stream()
.map(set -> {
- final String locatorSetName = TranslateUtils.toString(set.locatorSetName);
+ final String locatorSetName = TranslateUtils.toString(set.lsName);
//creates mapping for existing locator-set(if it is'nt already existing one)
if (!locatorSetContext.containsIndex(locatorSetName, context.getMappingContext())) {
- locatorSetContext.addName(set.locatorSetIndex, locatorSetName, context.getMappingContext());
+ locatorSetContext.addName(set.lsIndex, locatorSetName, context.getMappingContext());
}
LOG.trace("Locator Set with name: {}, VPP name: {} and index: {} found in VPP",
- locatorSetContext.getName(set.locatorSetIndex, context.getMappingContext()),
+ locatorSetContext.getName(set.lsIndex, context.getMappingContext()),
locatorSetName,
- set.locatorSetIndex);
+ set.lsIndex);
return set;
})
- .map(set -> new LocatorSetKey(TranslateUtils.toString(set.locatorSetName)))
+ .map(set -> new LocatorSetKey(TranslateUtils.toString(set.lsName)))
.collect(Collectors.toList());
} else {
LOG.warn("No data dumped for Locator Set {}", id);
checkNotNull(params, "Params for dump request not present");
LispLocatorDump request = new LispLocatorDump();
- request.locatorSetIndex = params.getLocatorSetIndex();
- request.filter = params.getFilter();
+ request.lsIndex = params.getLocatorSetIndex();
+ // TODO: HONEYCOMB-211: fix support for locator set filtering
+ // request.lsName
+ // request.filter = params.getFilter();
try {
return TranslateUtils.getReply(vppApi.lispLocatorDump(request).toCompletableFuture());
final LispLocatorSetDetailsReplyDump reply = new LispLocatorSetDetailsReplyDump();
LispLocatorSetDetails details = new LispLocatorSetDetails();
- details.locatorSetName = "Locator".getBytes(StandardCharsets.UTF_8);
+ details.lsName = "Locator".getBytes(StandardCharsets.UTF_8);
reply.lispLocatorSetDetails = ImmutableList.of(details);
cache.put(io.fd.honeycomb.lisp.translate.read.LocatorSetCustomizer.LOCATOR_SETS_CACHE_ID, reply);