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/dhcp/read/DhcpRelayCustomizer.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dhcp') diff --git a/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/read/DhcpRelayCustomizer.java b/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/read/DhcpRelayCustomizer.java index 875b93933..8565e10a2 100644 --- a/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/read/DhcpRelayCustomizer.java +++ b/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/read/DhcpRelayCustomizer.java @@ -16,8 +16,6 @@ package io.fd.hc2vpp.dhcp.read; -import static io.fd.honeycomb.translate.util.read.cache.EntityDumpExecutor.NO_PARAMS; - import com.google.common.base.Optional; import com.google.common.primitives.UnsignedInts; import io.fd.hc2vpp.common.translate.util.ByteDataTranslator; @@ -89,7 +87,7 @@ final class DhcpRelayCustomizer extends FutureJVppCustomizer Collections.emptyList(); final Optional dump = - dumpManager.getDump(id, context.getModificationCache(), NO_PARAMS); + dumpManager.getDump(id, context.getModificationCache()); if (!dump.isPresent() || dump.get().dhcpProxyDetails.isEmpty()) { return Collections.emptyList(); @@ -115,8 +113,7 @@ final class DhcpRelayCustomizer extends FutureJVppCustomizer @Override public void readCurrentAttributes(@Nonnull final InstanceIdentifier id, @Nonnull final RelayBuilder 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().dhcpProxyDetails.isEmpty()) { return; -- cgit 1.2.3-korg