From 0119f7e2e8f96c7f6ed6af07200e432c16b837d5 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Fri, 12 May 2017 10:55:39 +0200 Subject: HC2VPP-145: fix snat mapping update Change-Id: I51e8a3e6d62b9c0dacf03d2148b813309fe0dfc4 Signed-off-by: Marek Gradzki (cherry picked from commit 923dac1cedec9ad7a215d128d54eb77fd85562ae) --- .../hc2vpp/nat/write/MappingEntryCustomizer.java | 4 ++-- .../nat/write/MappingEntryCustomizerTest.java | 28 ++++++++++++++++++---- .../nat/static-mapping-address-update.json | 12 ++++++++++ 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 nat/nat2vpp/src/test/resources/nat/static-mapping-address-update.json diff --git a/nat/nat2vpp/src/main/java/io/fd/hc2vpp/nat/write/MappingEntryCustomizer.java b/nat/nat2vpp/src/main/java/io/fd/hc2vpp/nat/write/MappingEntryCustomizer.java index ecffe9ca9..999b8118f 100644 --- a/nat/nat2vpp/src/main/java/io/fd/hc2vpp/nat/write/MappingEntryCustomizer.java +++ b/nat/nat2vpp/src/main/java/io/fd/hc2vpp/nat/write/MappingEntryCustomizer.java @@ -107,8 +107,8 @@ final class MappingEntryCustomizer implements ListWriterCustomizer