From 7e90b6c5f8a605470dd388bf3c31d9f5beb2724c Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Wed, 23 Aug 2017 16:19:41 +0200 Subject: DumpCacheManager: make dumpParams optional Requires https://gerrit.fd.io/r/#/c/8185/ Change-Id: Ib2d529366bd3cf6bb292014026ab8053a19c0ed7 Signed-off-by: Marek Gradzki --- .../src/main/java/io/fd/hc2vpp/policer/read/PolicerCustomizer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vpp-classifier/impl/src') diff --git a/vpp-classifier/impl/src/main/java/io/fd/hc2vpp/policer/read/PolicerCustomizer.java b/vpp-classifier/impl/src/main/java/io/fd/hc2vpp/policer/read/PolicerCustomizer.java index faf34678b..378a16b1d 100644 --- a/vpp-classifier/impl/src/main/java/io/fd/hc2vpp/policer/read/PolicerCustomizer.java +++ b/vpp-classifier/impl/src/main/java/io/fd/hc2vpp/policer/read/PolicerCustomizer.java @@ -16,8 +16,6 @@ package io.fd.hc2vpp.policer.read; -import static io.fd.honeycomb.translate.util.read.cache.EntityDumpExecutor.NO_PARAMS; - import com.google.common.base.Optional; import com.google.common.primitives.Longs; import com.google.common.primitives.UnsignedInts; @@ -83,7 +81,7 @@ final class PolicerCustomizer extends FutureJVppCustomizer @Override public List getAllIds(@Nonnull final InstanceIdentifier id, @Nonnull final ReadContext ctx) throws ReadFailedException { - final Optional dump = dumpManager.getDump(id, ctx.getModificationCache(), NO_PARAMS); + final Optional dump = dumpManager.getDump(id, ctx.getModificationCache()); if (!dump.isPresent() || dump.get().policerDetails.isEmpty()) { return Collections.emptyList(); @@ -107,7 +105,7 @@ final class PolicerCustomizer extends FutureJVppCustomizer public void readCurrentAttributes(@Nonnull final InstanceIdentifier id, @Nonnull final PolicerBuilder builder, @Nonnull final ReadContext ctx) throws ReadFailedException { - final Optional dump = dumpManager.getDump(id, ctx.getModificationCache(), NO_PARAMS); + final Optional dump = dumpManager.getDump(id, ctx.getModificationCache()); if (!dump.isPresent() || dump.get().policerDetails.isEmpty()) { return; -- cgit 1.2.3-korg