diff options
author | 2017-10-10 00:07:11 +0530 | |
---|---|---|
committer | 2017-10-10 00:07:11 +0530 | |
commit | 8157d1cfbc22cc05998a9e58a0da367f82ff63e3 (patch) | |
tree | 430a7f4c44e664622cdc1df2d1ca98653cd9e6d4 /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml | |
parent | 1259ff85a7be548471f49298959929e3791ca8d1 (diff) |
Fix for validate-network-input
Changes includes:
1) Fix an existing bug in validate-network-input because
of which DG validation was failing.
2) validate-network-input to do nothing for overlay validation.
3) validate-network-input-parameter to validate network-id for
deactivate flow.
Change-Id: I424817ab20263633b8dacd3b3d672e63e3960f6d
Issue-Id: SDNC-113
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
Former-commit-id: bf5801eae1015156972164d453dc737d63eeed95
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml index e54026dc..3af34c61 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml @@ -244,7 +244,22 @@ </outcome>
<outcome value="deactivate">
<switch test="`$network-topology-operation-input.request-information.request-action`">
- <outcome value="DeActivateDCINetworkInstance" />
+ <outcome value="DeActivateDCINetworkInstance">
+ <block atomic="true">
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="requiredParameters">
+ <parameter name="$network-topology-operation-input.network-information.network-id" value="" />
+ </execute>
+ <switch test="`$network-topology-operation-input.network-information.network-id`">
+ <outcome value="">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
<outcome value="Other">
<return status="failure">
<parameter name="ack-final" value="Y" />
@@ -293,4 +308,4 @@ </switch>
</block>
</method>
-</service-logic>
+</service-logic>
\ No newline at end of file |