Cannot retieve modules source

Description

On the current main branch when we invoke:

We get the response 500 with message:

It is expected to get YANG module source.

Environment

None

Activity

Robert Varga March 18, 2024 at 10:34 PM

Actually, the request is wrong. The naming strategy is implemented here: https://github.com/opendaylight/netconf/blob/b99617ef7127097335289debd8eee5f79c18170a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/mdsal/RestconfSchemaSourceUrlProvider.java#L38-L40
This is taken into account when ietf-yang-library is created, i.e. it advertizes:

and the following works without a glitch:

Ivan Hraško February 14, 2024 at 7:56 AM
Edited

The problem is probably in path regex used - the call is redirected to mount point method instead of method dedicated for controller. See particular API.

Won't Do

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created February 6, 2024 at 12:02 PM
Updated March 18, 2024 at 10:37 PM
Resolved March 18, 2024 at 10:35 PM