From 8e0b7b8b35c2efba5e48219318e6c5a8e48a6d4f Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Mon, 15 May 2017 12:51:24 +0200 Subject: HC2VPP-155 - Lisp enabled/disable ordering fixed - must be written before interfaces, to prevent setting flags for not existing interface Change-Id: I7fc472f3bfed2c71081a5db8628f557fb1870743 Signed-off-by: Jan Srnicek --- .../io/fd/hc2vpp/lisp/translate/write/factory/LispWriterFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/lisp2vpp/src/main') 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 46cb9da7b..91bbf6ad2 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 @@ -31,6 +31,7 @@ import io.fd.honeycomb.translate.write.WriterFactory; import io.fd.honeycomb.translate.write.registry.ModifiableWriterRegistryBuilder; import javax.annotation.Nonnull; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.Interfaces; +import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.Lisp; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.lisp.feature.data.grouping.LispFeatureData; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.map.register.grouping.MapRegister; @@ -56,7 +57,7 @@ public final class LispWriterFactory extends AbstractLispInfraFactoryBase implem // and in scenario when vpp data are lost, it would end up calling // sw_interface_set_flags for non existing interface index registry.addBefore(new GenericWriter<>(LISP_INSTANCE_IDENTIFIER, new LispCustomizer(vppApi)), - InstanceIdentifier.create(Interfaces.class)); + InstanceIdentifier.create(Interfaces.class).child(Interface.class)); registry.addAfter(writer(LISP_FEATURE_IDENTIFIER.child(PitrCfg.class), new PitrCfgCustomizer(vppApi, lispStateCheckService)), LOCATOR_SET_ID); -- cgit 1.2.3-korg