Merge "BUG-832 Add schemaContext to notification parsing process in sal-netcon-connector"
authorEd Warnicke <eaw@cisco.com>
Mon, 5 May 2014 12:43:36 +0000 (12:43 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 5 May 2014 12:43:36 +0000 (12:43 +0000)
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfMapping.java

index f0b711d368595dede27c14030b4d0d4ef64112a6..55e17c56b38e5d47b656ad37f7e5c9e5f11e78db 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());