Added xmlns to rpc tag 97/47897/1
authorBalaji, Ramya (rb111y) <rb111y@att.com>
Wed, 16 May 2018 19:08:45 +0000 (15:08 -0400)
committerBalaji, Ramya (rb111y) <rb111y@att.com>
Wed, 16 May 2018 20:11:09 +0000 (16:11 -0400)
Added the name space specification for
the commit sent to the device, to ensure a
successful configuration.

Issue-ID: APPC-902
Change-Id: Ifd10c182cd2d29a6745d337552ed3294e5b31913
Signed-off-by: Balaji, Ramya (rb111y) <rb111y@att.com>
appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java

index f433fc0..66e24f4 100644 (file)
@@ -352,7 +352,7 @@ public ConfigStatus configure(String key, Map<String, String> parameters, SvcLog
         String Contents = parameters.get("Contents");
         String netconfHelloCmd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <hello xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n    <capabilities>\n   <capability>urn:ietf:params:netconf:base:1.0</capability>\n  <capability>urn:com:ericsson:ebase:1.1.0</capability> </capabilities>\n </hello>";
         String terminateConnectionCmd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    <rpc message-id=\"terminateConnection\" xmlns:netconf=\"urn:ietf:params:xml:ns:netconf:base:1.0\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n <close-session/> \n </rpc>\n ]]>]]>";
-        String commitCmd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <rpc> <commit/> </rpc>\n ]]>]]>";
+        String commitCmd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <rpc xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\" message-id=\"1\"> <commit/> </rpc>\n ]]>]]>";
 
         log(fnName,
             "xml-download: User_name=" + User_name + " Host_ip_address=" + Host_ip_address