Correct netconf capability matching regex 00/89900/1
authorAbdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Fri, 14 Jun 2019 14:05:15 +0000 (14:05 +0000)
committerAbdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Fri, 14 Jun 2019 14:05:15 +0000 (14:05 +0000)
Issue-ID: CCSDK-1403

Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Change-Id: I0e8efc620f09af4fc776fbbf9d4e08e721dc8c63

ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/utils/NetconfConstant.kt

index 8722bb0..03177e8 100644 (file)
@@ -79,7 +79,7 @@ object RpcMessageUtils {
 
     const val INTERLEAVE_CAPABILITY_STRING = "urn:ietf:params:netconf:capability:interleave:1.0"
 
-    const val CAPABILITY_REGEX = "capability>\\s*(.*?)\\s*capability>"
+    const val CAPABILITY_REGEX = "capability>\\s*(.*?)\\s*</capability>"
 
     const val SESSION_ID_REGEX = "session-id>\\s*(.*?)\\s*session-id>"
 
@@ -87,4 +87,4 @@ object RpcMessageUtils {
 
     const val NETCONF_10_CAPABILITY = "urn:ietf:params:netconf:base:1.0"
     const val NETCONF_11_CAPABILITY = "urn:ietf:params:netconf:base:1.1"
-}
\ No newline at end of file
+}