Propagate supported features from ModuleInfoSnapshotBuilder 47/105547/1
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 13:33:22 +0000 (15:33 +0200)
commita1804db53a7ddab51f8498e7a3d4d76f65ddbf1b
tree990f7f351e9acfb7cb2e43e7fdd90dad1ccbd107
parent0e42fbb159b8d84d0fad09b156535ee396b3a745
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>
(cherry picked from commit 9642f37f7a23be0206d2f04a7c160c245a0b43ed)
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]