Andreas Papazois
Committed by Gerrit Code Review

[ONOS-4662] Removing "ERROR" string from error netconf replies.

Change-Id: I7937e4140d5997dd61d70cc13ea933be3381cbe4
...@@ -55,7 +55,6 @@ public class NetconfSessionImpl implements NetconfSession { ...@@ -55,7 +55,6 @@ public class NetconfSessionImpl implements NetconfSession {
55 private static final String MESSAGE_ID_STRING = "message-id"; 55 private static final String MESSAGE_ID_STRING = "message-id";
56 private static final String HELLO = "<hello"; 56 private static final String HELLO = "<hello";
57 private static final String NEW_LINE = "\n"; 57 private static final String NEW_LINE = "\n";
58 - private static final String ERROR = "ERROR ";
59 private static final String END_OF_RPC_OPEN_TAG = "\">"; 58 private static final String END_OF_RPC_OPEN_TAG = "\">";
60 private static final String EQUAL = "="; 59 private static final String EQUAL = "=";
61 private static final String NUMBER_BETWEEN_QUOTES_MATCHER = "\"+([0-9]+)+\""; 60 private static final String NUMBER_BETWEEN_QUOTES_MATCHER = "\"+([0-9]+)+\"";
...@@ -179,7 +178,8 @@ public class NetconfSessionImpl implements NetconfSession { ...@@ -179,7 +178,8 @@ public class NetconfSessionImpl implements NetconfSession {
179 request = request + NEW_LINE + ENDPATTERN; 178 request = request + NEW_LINE + ENDPATTERN;
180 } 179 }
181 String reply = sendRequest(request); 180 String reply = sendRequest(request);
182 - return checkReply(reply) ? reply : ERROR + reply; 181 + checkReply(reply);
182 + return reply;
183 } 183 }
184 184
185 @Override 185 @Override
......