diff options
author | 2020-11-16 15:09:47 +0000 | |
---|---|---|
committer | 2020-11-17 17:50:31 +0000 | |
commit | b4b7f19db569e3e09d01171c599cf45824ed1895 (patch) | |
tree | cbc8aead4a49bbb4b6593d0f4c038bc6d9cf6fe8 /platform-logic | |
parent | 87c06327965c62ca085826506b766bca2e8cfe19 (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: 17a289222668905e7a692f67f0c2561b637f9a49
Diffstat (limited to 'platform-logic')
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"
|