From abac481c6b1e665f931198906fd1f361fa5a7e0f Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Wed, 7 May 2014 17:32:30 +0200 Subject: [PATCH] Fix netconf-connector filter construction Change-Id: I9b36458d0e3bb2a14b303e14ddcd8dcab4e7b33d Signed-off-by: Maros Marsalek --- .../controller/sal/connect/netconf/NetconfMapping.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfMapping.java b/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfMapping.java index 55e17c56b3..f76ec28624 100644 --- a/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfMapping.java +++ b/opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfMapping.java @@ -99,7 +99,11 @@ public class NetconfMapping { for (org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.PathArgument component : Lists .reverse(identifier.getPath())) { - previous = toNode(component, previous); + if (component instanceof NodeIdentifierWithPredicates) { + previous = toNode((NodeIdentifierWithPredicates)component, previous); + } else { + previous = toNode(component, previous); + } } return filter("subtree", previous); } -- 2.36.6