summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHesam Rahimi <hesam.rahimi@huawei.com>2020-11-16 15:09:47 +0000
committerHesam Rahimi <hesam.rahimi@huawei.com>2020-11-16 15:09:47 +0000
commit9a0ec68b26b4c2346263c01366ed48552f9ee1f2 (patch)
treec9f893bd1ce0f037293c129e83311820bdd90ff5
parent1d98b77f5794ce6f2ec457ae5cc73a5d4601491a (diff)
Reset a context memory variable (vpn-binding) in a for loop block
Issue-ID: SDNC-1414 Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com> Change-Id: I9582036fbee5f676b12a0b7df4d7d119c020706b Former-commit-id: 14efdd64ace038a131d7aca9e14c057fa5d7a0b0
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json14
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml3
2 files changed, 16 insertions, 1 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
index 3d894d5e..a1b68a69 100644
--- a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
@@ -1417,7 +1417,8 @@
"z": "8a9c455f.82beb8",
"wires": [
[
- "684f9a1f.f6246c"
+ "684f9a1f.f6246c",
+ "b9f32cf4.c94178"
]
]
},
@@ -1746,5 +1747,16 @@
"y": 411,
"z": "8a9c455f.82beb8",
"wires": []
+ },
+ {
+ "id": "b9f32cf4.c94178",
+ "type": "set",
+ "name": "unset tmp.aai.vpn-binding",
+ "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
+ "comments": "",
+ "x": 2965,
+ "y": 283,
+ "z": "8a9c455f.82beb8",
+ "wires": []
}
] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
index 3af9347e..bb6d1ae1 100644
--- a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
@@ -36,6 +36,9 @@
<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
<outcome value='vpn-binding'>
<block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-binding.' value='' />
+ </set>
<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="vpn-binding"
key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"