diff options
author | Jan Srnicek <jsrnicek@cisco.com> | 2017-01-18 10:36:05 +0100 |
---|---|---|
committer | Jan Srnicek <jsrnicek@cisco.com> | 2017-01-18 10:36:18 +0100 |
commit | 97a60a88c50402e4a3af0c1138f2c04e4488aaa1 (patch) | |
tree | 4083e72d5d4ad379a956c4ae67e3672d4ea5cf61 /lisp | |
parent | 99a666433adaf8009e60060e6078bdf64d99090c (diff) |
HONEYCOMB-337 - Fixed ordering for PitrCfg writers
PitrCfg holds reference to locator set, therefore must be deleted before
Change-Id: Ic4d2d7e26126991a4426310e4e4a5f0516969fc9
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp')
-rwxr-xr-x | lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/factory/LispWriterFactory.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/factory/LispWriterFactory.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/factory/LispWriterFactory.java index d5eef4868..fd5443bb9 100755 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/factory/LispWriterFactory.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/factory/LispWriterFactory.java @@ -17,6 +17,8 @@ package io.fd.hc2vpp.lisp.translate.write.factory; +import static io.fd.hc2vpp.lisp.translate.write.factory.LocatorSetWriterFactory.LOCATOR_SET_ID; + import io.fd.hc2vpp.lisp.translate.AbstractLispInfraFactoryBase; import io.fd.hc2vpp.lisp.translate.write.LispCustomizer; import io.fd.hc2vpp.lisp.translate.write.PitrCfgCustomizer; @@ -40,7 +42,7 @@ public final class LispWriterFactory extends AbstractLispInfraFactoryBase implem public void init(@Nonnull final ModifiableWriterRegistryBuilder registry) { registry.add(new GenericWriter<>(lispInstanceIdentifier, new LispCustomizer(vppApi))); - registry.add(new GenericWriter<>(lispInstanceIdentifier.child(LispFeatureData.class).child(PitrCfg.class), - new PitrCfgCustomizer(vppApi))); + registry.addAfter(new GenericWriter<>(lispInstanceIdentifier.child(LispFeatureData.class).child(PitrCfg.class), + new PitrCfgCustomizer(vppApi)),LOCATOR_SET_ID); } } |