From: Maros Marsalek Date: Wed, 30 Apr 2014 13:42:11 +0000 (+0200) Subject: BUG-832 Add schemaContext to notification parsing process in sal-netcon-connector X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~141^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=083e6fb85d72a873520b80f0f24c2c261ea1c620 BUG-832 Add schemaContext to notification parsing process in sal-netcon-connector Change-Id: I3161bde1635837676e75fdc0e1bb5c59fcb4a542 Signed-off-by: Maros Marsalek --- 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 f0b711d368..55e17c56b3 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 @@ -135,7 +135,7 @@ public class NetconfMapping { SchemaContext schemaContext = ctx.get(); Set notifications = schemaContext.getNotifications(); Document document = message.getDocument(); - return XmlDocumentUtils.notificationToDomNodes(document, Optional.fromNullable(notifications)); + return XmlDocumentUtils.notificationToDomNodes(document, Optional.fromNullable(notifications), ctx.get()); } return null; } @@ -192,7 +192,7 @@ public class NetconfMapping { rawRpc = it.toInstance(); // sys(xmlData) } else { - rawRpc = (CompositeNode) toCompositeNode(message.getDocument()); + rawRpc = (CompositeNode) toCompositeNode(message, context); } else { rawRpc = (CompositeNode) toCompositeNode(message.getDocument());