diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-08-23 16:19:41 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-08-28 11:02:30 +0200 |
commit | 7e90b6c5f8a605470dd388bf3c31d9f5beb2724c (patch) | |
tree | f209149bfbb7525558c0ac3f9370cbcb78eeb7c1 /vpp-classifier | |
parent | fe05c59bb2328bb6494cc3f0c994e8f10178f136 (diff) |
DumpCacheManager: make dumpParams optional
Requires https://gerrit.fd.io/r/#/c/8185/
Change-Id: Ib2d529366bd3cf6bb292014026ab8053a19c0ed7
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'vpp-classifier')
-rw-r--r-- | vpp-classifier/impl/src/main/java/io/fd/hc2vpp/policer/read/PolicerCustomizer.java | 6 |
1 files changed, 2 insertions, 4 deletions
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<PolicerKey> getAllIds(@Nonnull final InstanceIdentifier<Policer> id, @Nonnull final ReadContext ctx) throws ReadFailedException { - final Optional<PolicerDetailsReplyDump> dump = dumpManager.getDump(id, ctx.getModificationCache(), NO_PARAMS); + final Optional<PolicerDetailsReplyDump> 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<Policer> id, @Nonnull final PolicerBuilder builder, @Nonnull final ReadContext ctx) throws ReadFailedException { - final Optional<PolicerDetailsReplyDump> dump = dumpManager.getDump(id, ctx.getModificationCache(), NO_PARAMS); + final Optional<PolicerDetailsReplyDump> dump = dumpManager.getDump(id, ctx.getModificationCache()); if (!dump.isPresent() || dump.get().policerDetails.isEmpty()) { return; |