diff options
author | 2017-11-14 20:34:06 +0000 | |
---|---|---|
committer | 2017-11-14 20:34:06 +0000 | |
commit | f3172e8d818224776d108f0ee2c15718798c8d29 (patch) | |
tree | be971fdf72a4b7e2768bbd21b9c793a7a4d0e0c6 /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml | |
parent | a347e10eee024991ff7c0bf7487aa9e2b78f9a84 (diff) | |
parent | 058e2a65a7a18a5914767a6fa16b0f84f692d85f (diff) |
Merge "Fix tunnelxconn create/delete ip bugs"
Former-commit-id: e2453f4d1e1dc23cf3eb292db8ac908367d0844c
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml new file mode 100644 index 00000000..d03a1c30 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml @@ -0,0 +1,28 @@ +<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'> + <method rpc='get-vnf-api-parent-instance' mode='sync'> + <block atomic="true"> + <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs' pfx='tmp.vnfdata' ></get-resource> + <for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' > + <switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.search.parent-service-instance-id`'> + <outcome value='true'> + <block> + <set> + <parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id`' /> + </set> + <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id/service-data/' pfx='parent-service-instance' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" + value="`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`" /> + </return> + </outcome> + </get-resource> + </block> + </outcome> + </switch> + </for> + </block> + </method> +</service-logic>
\ No newline at end of file |