summaryrefslogtreecommitdiffstats
path: root/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-04-24 09:39:59 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-04-24 08:07:47 +0000
commit470588683af86c9ab73538ced85e1d88f55e3b70 (patch)
tree127211cd95071b425ec5e4836cccf7f45e70fe6c /lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java
parente4139584aaf94df71a4ddb5e5a0dded1a80c249d (diff)
HC2VPP-124 - Post lisp apis to one***
All apis starting with prefix lisp*** will be abandoned, so refactoring to one*** variants Change-Id: I603b3ce54ef1f8b6cefaaccedb87ccbf3ea38dd0 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java')
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java
index 8d46e9bed..a93f08349 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImpl.java
@@ -27,8 +27,8 @@ import io.fd.honeycomb.translate.read.ReadFailedException;
import io.fd.honeycomb.translate.util.read.cache.DumpCacheManager;
import io.fd.honeycomb.translate.util.read.cache.DumpCacheManager.DumpCacheManagerBuilder;
import io.fd.honeycomb.translate.write.WriteContext;
-import io.fd.vpp.jvpp.core.dto.ShowLispStatus;
-import io.fd.vpp.jvpp.core.dto.ShowLispStatusReply;
+import io.fd.vpp.jvpp.core.dto.ShowOneStatus;
+import io.fd.vpp.jvpp.core.dto.ShowOneStatusReply;
import io.fd.vpp.jvpp.core.future.FutureJVppCore;
import javax.annotation.Nonnull;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.Lisp;
@@ -38,17 +38,17 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
public final class LispStateCheckServiceImpl implements LispStateCheckService, JvppReplyConsumer, ByteDataTranslator {
private static final Lisp STATIC_LISP_INSTANCE = new LispBuilder().setEnable(false).build();
- private static final ShowLispStatusReply DEFAULT_REPLY = new ShowLispStatusReply();
+ private static final ShowOneStatusReply DEFAULT_REPLY = new ShowOneStatusReply();
private static final InstanceIdentifier<Lisp> IDENTIFIER = InstanceIdentifier.create(Lisp.class);
- private final DumpCacheManager<ShowLispStatusReply, Void> dumpManager;
+ private final DumpCacheManager<ShowOneStatusReply, Void> dumpManager;
@Inject
public LispStateCheckServiceImpl(@Nonnull final FutureJVppCore vppApi) {
- dumpManager = new DumpCacheManagerBuilder<ShowLispStatusReply, Void>()
- .withExecutor((instanceIdentifier, aVoid) -> getReplyForRead(vppApi.showLispStatus(new ShowLispStatus())
+ dumpManager = new DumpCacheManagerBuilder<ShowOneStatusReply, Void>()
+ .withExecutor((instanceIdentifier, aVoid) -> getReplyForRead(vppApi.showOneStatus(new ShowOneStatus())
.toCompletableFuture(), instanceIdentifier))
- .acceptOnly(ShowLispStatusReply.class)
+ .acceptOnly(ShowOneStatusReply.class)
.build();
}