Unable to update leaf-list data with PUT request on the device

Description

Adding a new item to the leaf-list fails with a 400 Bad Request error, with the following error message: "Payload name ((urn:foo)baz-list) is different from identifier name ((urn:foo)baz-list[delta])"

This issue is caused when parsing data from JSON to NormalizedNode. Similar to the MapNode body parser, it always produces a single-entry LeafSetNode and should instead provide its child.


Steps to reproduce:
1. Start testtool with following model:

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

  2. Populate the “foo” model with data

  3. Put new element into leaf-list

Environment

None

Activity

Show:

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created March 26, 2025 at 10:36 AM
Updated March 26, 2025 at 12:13 PM