diff options
author | prakash.e <prakash.e@huawei.com> | 2019-04-22 09:00:38 +0530 |
---|---|---|
committer | prakash.e <prakash.e@huawei.com> | 2019-04-22 09:00:53 +0530 |
commit | 8d222233a983e17284a6496ffd6e843b9c82bc5b (patch) | |
tree | 2d866046b22eb3ee22da7dc2eacfc2959ca68a90 /platform-logic/generic-resource-api/src/main/xml/sdwan | |
parent | 49b479f11182ca07d33ee191bb3f5f0585eb2625 (diff) |
Fixed SDWN lan-port-delete issue in AAI
modifed lan-port-delete DG by chnging AAI
resource name to lan-port-config
Change-Id: Ieceaee4c01c086b2fa6c9ef4493b71173c22b83b
Issue-ID: SDNC-659
Signed-off-by: Prakash.E <prakash.e@huawei.com>
Former-commit-id: 13a1121e5c5dc07a372f7f88c191ad0b9037834e
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/sdwan')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml index 5fb67357..30df6e08 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml @@ -21,6 +21,15 @@ </outcome>
</switch>
</for>
+ <switch test='`$vnf-index`'>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>
<outcome value='0'>
<return status='failure'>
@@ -127,7 +136,7 @@ + '/service-data/service-topology/'`"/>
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='lan-port-config'
- key='site-resource.site-resource-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'></delete>
+ key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'></delete>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
|