BUG-832 Fix rpcResult to xml translation to use schema for get/get-config. 72/7772/1
authorMaros Marsalek <mmarsale@cisco.com>
Fri, 6 Jun 2014 09:34:44 +0000 (11:34 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Fri, 6 Jun 2014 09:34:44 +0000 (11:34 +0200)
The schema was never used since check if rpc qname is get/get-config was performed using == instead of equals. (Result of xtend -> java transform)

Change-Id: I057476f27b5c84b87ca9c81c51bde24990d17ff1
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/util/NetconfMessageTransformUtil.java

index c51009f5d24f9efb9882c6550201b988a547330d..1284d6d1ce3cd67d8b9355622873db46a46754b5 100644 (file)
@@ -152,7 +152,7 @@ public class NetconfMessageTransformUtil {
     }
 
     public static boolean isDataRetrievalOperation(final QName rpc) {
-        return NETCONF_URI == rpc.getNamespace()
+        return NETCONF_URI.equals(rpc.getNamespace())
                 && (rpc.getLocalName().equals(NETCONF_GET_CONFIG_QNAME.getLocalName()) || rpc.getLocalName().equals(
                         NETCONF_GET_QNAME.getLocalName()));
     }