summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/xml
diff options
context:
space:
mode:
authorprakash.e <prakash.e@huawei.com>2019-04-22 11:59:04 +0530
committerprakash.e <prakash.e@huawei.com>2019-04-22 11:59:11 +0530
commit06abcca9f01e4508efd5839612190f4df2713752 (patch)
treec10cd0c2332d01cef21eb1c907983807b41529d5 /platform-logic/generic-resource-api/src/main/xml
parent8d222233a983e17284a6496ffd6e843b9c82bc5b (diff)
SDWAN vpn vf-module-topology added null check
sdwan-vf-vpn-input-parameters DG is updated by adding NULL check for vnf-index Change-Id: I54ec5edb8b37a87a6015a6b4f58aa858a96bad3d Issue-ID: SDNC-659 Signed-off-by: Prakash.E <prakash.e@huawei.com> Former-commit-id: b83410a64457c04568bac634a8f85c7274980008
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml')
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_validate-sdwan-vf-vpn-input-parameters.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_validate-sdwan-vf-vpn-input-parameters.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_validate-sdwan-vf-vpn-input-parameters.xml
index 29b26cd9..60492b5b 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_validate-sdwan-vf-vpn-input-parameters.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_validate-sdwan-vf-vpn-input-parameters.xml
@@ -30,6 +30,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='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>
<outcome value='create'>
<block atomic="true">