diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-07-28 15:46:43 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-08-09 09:41:54 +0200 |
commit | db84265112d45c173f4e4d25b6eb1a97c9ff06d7 (patch) | |
tree | 4e92621e00ce932cb47a497bd82c51de34a40d06 | |
parent | a5330d35791e69e3491e512841262bbe94694c91 (diff) |
HC2VPP-204: enable translation for itr-remote-locator-set
Change-Id: I28d277d7bf39b61836d86c247bac8411dbe350d4
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/factory/LispStateReaderFactory.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/factory/LispStateReaderFactory.java index ee2263724..c7fbf7131 100755 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/factory/LispStateReaderFactory.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/factory/LispStateReaderFactory.java @@ -17,6 +17,7 @@ package io.fd.hc2vpp.lisp.translate.read.factory; import io.fd.hc2vpp.lisp.translate.AbstractLispInfraFactoryBase; +import io.fd.hc2vpp.lisp.translate.read.ItrRemoteLocatorSetCustomizer; import io.fd.hc2vpp.lisp.translate.read.LispStateCustomizer; import io.fd.hc2vpp.lisp.translate.read.MapRegisterCustomizer; import io.fd.hc2vpp.lisp.translate.read.MapRequestModeCustomizer; @@ -28,6 +29,7 @@ import io.fd.honeycomb.translate.read.ReaderFactory; import io.fd.honeycomb.translate.read.registry.ModifiableReaderRegistryBuilder; import javax.annotation.Nonnull; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.LispState; +import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.itr.remote.locator.sets.grouping.ItrRemoteLocatorSet; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.lisp.feature.data.grouping.LispFeatureData; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.lisp.feature.data.grouping.LispFeatureDataBuilder; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.map.register.grouping.MapRegister; @@ -67,5 +69,8 @@ public class LispStateReaderFactory extends AbstractLispInfraFactoryBase impleme registry.add(new GenericInitReader<>(LISP_FEATURE_ID.child(MapRequestMode.class), new MapRequestModeCustomizer(vppApi, lispStateCheckService))); + + registry.add(new GenericInitReader<>(LISP_FEATURE_ID.child(ItrRemoteLocatorSet.class), + new ItrRemoteLocatorSetCustomizer(vppApi, lispStateCheckService))); } } 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 244040be8..e0992506f 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 @@ -20,6 +20,7 @@ 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.ItrRemoteLocatorSetCustomizer; import io.fd.hc2vpp.lisp.translate.write.LispCustomizer; import io.fd.hc2vpp.lisp.translate.write.MapRegisterCustomizer; import io.fd.hc2vpp.lisp.translate.write.MapRequestModeCustomizer; @@ -33,6 +34,7 @@ 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.rev170803.Lisp; +import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.itr.remote.locator.sets.grouping.ItrRemoteLocatorSet; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.lisp.feature.data.grouping.LispFeatureData; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.map.register.grouping.MapRegister; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170803.map.request.mode.grouping.MapRequestMode; @@ -73,5 +75,8 @@ public final class LispWriterFactory extends AbstractLispInfraFactoryBase implem registry.add(writer(LISP_FEATURE_IDENTIFIER.child(RlocProbe.class), new RlocProbeCustomizer(vppApi, lispStateCheckService))); + + registry.add(writer(LISP_FEATURE_IDENTIFIER.child(ItrRemoteLocatorSet.class), + new ItrRemoteLocatorSetCustomizer(vppApi, lispStateCheckService))); } } |