Improve monitoring access to revision-less schemas 55/110355/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Feb 2024 13:57:20 +0000 (14:57 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Feb 2024 14:10:25 +0000 (15:10 +0100)
commit3c7fc15ebf4ce986ae30f7a19d51e9aa22ccfc94
tree549f8f5378b65495b8e06017e9219316304d2978
parentf0fdcb12fa4c1759ed9da23e78344df214eab2bd
Improve monitoring access to revision-less schemas

The server may support multiple versions of YANG schema, which one of
which may not actually have a revision. In this case we really want to
specify an empty version, as that is the entry are after -- rather than
any version, which would incur data-not-unique error.

JIRA: NETCONF-840
Change-Id: I5b705971369cbffa81c0c0464569f8caac2f8e6d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugins/netconf-client-mdsal/src/main/java/org/opendaylight/netconf/client/mdsal/impl/MonitoringSchemaSourceProvider.java
plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/impl/MonitoringSchemaSourceProviderTest.java
plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/impl/NetconfMessageTransformerTest.java