Fix Overlay DG testing issue 03/21303/2
authorshashikanth.vh <shashikanth.vh@huawei.com>
Mon, 30 Oct 2017 14:46:34 +0000 (20:16 +0530)
committerShashikanth VH <shashikanth.vh@huawei.com>
Mon, 30 Oct 2017 14:52:31 +0000 (14:52 +0000)
While getting record from AAI for l3-network, key used is
esr-thirdparty-sdnc.thirdparty-sdnc-id instead of l3-network.network-name
https://jira.onap.org/browse/SDNC-155

Issue-Id: SDNC-155
Change-Id: I47fcd19111f5fa4c32d464409c28b52599116e7c
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Former-commit-id: ab65c8a4bdaaa59a7bcf2b587839fc95f720f0ad

platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml

index dfdf0b4..635773b 100644 (file)
     "id": "fc475635.0ecc7",
     "type": "get-resource",
     "name": "get-resource l3-network",
-    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-network\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.dci-connects.local_networks[$idx] AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.l3-network' local-only='false' >\n",
+    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $tmp.dci-connects.local_networks[$idx] AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.l3-network' local-only='false' >\n",
     "comments": "",
     "outputs": 1,
     "x": 3475.500030517578,
     "id": "5d5e8ee8.e594e8",
     "type": "get-resource",
     "name": "get-resource l3-network",
-    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-network\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.dci-connects.local_networks[$idx] AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.l3-network' local-only='false' >\n",
+    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $tmp.dci-connects.local_networks[$idx] AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.l3-network' local-only='false' >\n",
     "comments": "",
     "outputs": 1,
     "x": 3506,
index 4dba808..7f4eb8f 100644 (file)
@@ -40,7 +40,7 @@
                                             <parameter name="ctx_memory_result_key" value="tmp.dci-connects.local_networks" />\r
                                             <outcome value="success">\r
                                                 <for index="idx" start="0" end="`$tmp.dci-connects.local_networks_length`">\r
-                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="l3-network" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.dci-connects.local_networks[$idx] AND         depth = '0'" pfx="tmp.aai.l3-network" local-only="false">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="l3-network" key="l3-network.network-name = $tmp.dci-connects.local_networks[$idx] AND         depth = '0'" pfx="tmp.aai.l3-network" local-only="false">\r
                                                         <outcome value="success">\r
                                                             <set>\r
                                                                 <parameter name="prop.dci-connects.local_networks[$idx]" value="`$tmp.aai.l3-network.network-id`" />\r
                                             <parameter name="ctx_memory_result_key" value="tmp.dci-connects.local_networks" />\r
                                             <outcome value="success">\r
                                                 <for index="idx" start="0" end="`$tmp.dci-connects.local_networks_length`">\r
-                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="l3-network" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.dci-connects.local_networks[$idx] AND         depth = '0'" pfx="tmp.aai.l3-network" local-only="false">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="l3-network" key="l3-network.network-name = $tmp.dci-connects.local_networks[$idx] AND         depth = '0'" pfx="tmp.aai.l3-network" local-only="false">\r
                                                         <outcome value="success">\r
                                                             <set>\r
                                                                 <parameter name="prop.dci-connects.local_networks[$idx]" value="`$tmp.aai.l3-network.network-id`" />\r