Getting leaf-list data from device fails with a 500 Server Error

Description

When a request is sent to get specific leaf-list data, such as “yang-ext:mount/foo:foo/baz-list=alpha" (based on ), the request fails with a 500 Server Error, and the following error appears in the logs:


This issue occurs when the device replies correctly, but Netconf fails to format the provided data. Incorrectly, it attempts to create JSON only from LeafSetEntryNode. Fix this by wrapping it with a SystemLeafSetNode, similar to how it's done for MapEntryNode.


Steps to reproduce:

  1. Start the Netopeer device and add the following model to its schema:

  2. Start ODL features: “feature:install odl-netconf-topology odl-restconf-all”

  3. Populate the “foo” model with data

  4. Retrieve data from the created leaf-list.

Environment

None

Activity

Show:

Details

Assignee

Reporter

Labels

Affects versions

Priority

Created March 26, 2025 at 9:11 AM
Updated March 26, 2025 at 9:11 AM