BUG-832 Add schemaContext to notification parsing process in sal-netcon-connector 23/6623/1
authorMaros Marsalek <mmarsale@cisco.com>
Wed, 30 Apr 2014 13:42:11 +0000 (15:42 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Wed, 30 Apr 2014 13:42:11 +0000 (15:42 +0200)
Change-Id: I3161bde1635837676e75fdc0e1bb5c59fcb4a542
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfMapping.java

index f0b711d..55e17c5 100644 (file)
@@ -135,7 +135,7 @@ public class NetconfMapping {
             SchemaContext schemaContext = ctx.get();
             Set<NotificationDefinition> 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());