Propagate supported features from ModuleInfoSnapshotBuilder 77/105277/12
authormatus.matok <matus.matok@pantheon.tech>
Thu, 6 Apr 2023 12:27:49 +0000 (14:27 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 20 Apr 2023 12:47:17 +0000 (14:47 +0200)
commit9642f37f7a23be0206d2f04a7c160c245a0b43ed
tree2a6707c563c56c04d178910e163a4f10b9aaf17b
parent5db761536fa543bcaa120d5ffcd639d001c062fd
Propagate supported features from ModuleInfoSnapshotBuilder

Allow a FeatureSet to be created from a collected
Module/Set<YangFeature> mapping, allowing each reported module to be
registered in ModuleInfoSnapshotBuilder. These are then transformed
into a FeatureSet and passed down to parser.

JIRA: MDSAL-789
Change-Id: I7837fb1debf2ebff3382422b232f047ec05316c1
Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-runtime-spi/src/main/java/org/opendaylight/mdsal/binding/runtime/spi/ModuleInfoSnapshotBuilder.java
binding/mdsal-binding-runtime-spi/src/test/java/org/opendaylight/mdsal/binding/runtime/spi/ModuleInfoSnapshotBuilderTest.java [new file with mode: 0644]