From: Patrick Brady Date: Wed, 29 May 2019 07:46:03 +0000 (-0700) Subject: Fix for aai in vcpe X-Git-Tag: 1.6.2~14 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=appc%2Fdeployment.git;a=commitdiff_plain;h=23299c969a313f8e3740bceb070655810f5e3efb Fix for aai in vcpe Adding the template file and replaced the generic restart DG to enable the workaround that was used in casablanca. DG is modified to lookup aai information from property files so that no values need to be hardcoded. Change-Id: I48569f133b301509204a879af133386e741dc142 Signed-off-by: Patrick Brady Issue-ID: APPC-1614 (cherry picked from commit 4dce366b94f679ac0870230aa8eb32ae248c609f) --- diff --git a/installation/appc/pom.xml b/installation/appc/pom.xml index 8b8dd9f..82c3d14 100644 --- a/installation/appc/pom.xml +++ b/installation/appc/pom.xml @@ -3,7 +3,7 @@ ============LICENSE_START========================================== ONAP : APPC =================================================================== -Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. +Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. =================================================================== Unless otherwise specified, all software contained herein is licensed @@ -116,6 +116,7 @@ limitations under the License. *.sh *.cfg *.xml + *.json false @@ -362,6 +363,7 @@ limitations under the License. *.sh *.cfg *.xml + *.json false diff --git a/installation/appc/src/main/resources/aai-named-query.json b/installation/appc/src/main/resources/aai-named-query.json new file mode 100755 index 0000000..6ccb5de --- /dev/null +++ b/installation/appc/src/main/resources/aai-named-query.json @@ -0,0 +1,14 @@ +{ + "query-parameters": { + "named-query": { + "named-query-uuid": ${tmp.named-query-uuid} + } + }, + "instance-filters":{ + "instance-filter":[ { + "generic-vnf": { + "vnf-id": ${tmp.named-query-vnf-id} + } + } ] + } +} diff --git a/installation/appc/src/main/scripts/installFeatures.sh b/installation/appc/src/main/scripts/installFeatures.sh index 9ad6898..4138fdc 100644 --- a/installation/appc/src/main/scripts/installFeatures.sh +++ b/installation/appc/src/main/scripts/installFeatures.sh @@ -175,3 +175,8 @@ do sleep 7s echo "Sleep Finished" done + +#Copy json template file for use by the generic restart DG aai fix +mkdir -p /opt/onap/appc/restapi/templates +cp /opt/onap/appc/data/aai-named-query.json /opt/onap/appc/restapi/templates/aai-named-query.json + diff --git a/platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_3.0.0.xml b/platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_3.0.0.xml deleted file mode 100644 index 20df079..0000000 --- a/platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_3.0.0.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform-logic/appc/src/main/xml/vcpe-workaround-with-properties_APPC_method_Generic_Restart_3.0.0.xml b/platform-logic/appc/src/main/xml/vcpe-workaround-with-properties_APPC_method_Generic_Restart_3.0.0.xml new file mode 100755 index 0000000..46a0011 --- /dev/null +++ b/platform-logic/appc/src/main/xml/vcpe-workaround-with-properties_APPC_method_Generic_Restart_3.0.0.xml @@ -0,0 +1,289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +