Do not attempt to form leaf metadata on empty path 78/81878/10
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 2 May 2019 17:05:38 +0000 (19:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 1 Jun 2019 20:25:34 +0000 (22:25 +0200)
commitc68d744839dc8e9cd541955bd44642cc4598ec82
treea64323c17e6aef3a5e2b1aa6ef79d2896b4e6504
parent0b612a932cc941ad6066cba5590305f56e514fb2
Do not attempt to form leaf metadata on empty path

This thinko was introduced during Sodium MRI integration. As
NormalizedNodes no longer hold attributes, the corresponding
metadata needs to be constructed -- but only in the case
we have created the structure ourselves.

In order to fix this, we iterate over both the node and the path,
thus correctly mirroring the structure.

JIRA: NETCONF-613
Change-Id: Ib2c9736c577c5dbdd8f4c826f13acbd7cbc21418
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NetconfMessageTransformUtil.java