diff options
author | Dan Timoney <dtimoney@att.com> | 2020-07-31 16:41:53 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-08-03 09:46:44 -0400 |
commit | 4a2c8a2a33672c2c3570b934556874dd7feabfa4 (patch) | |
tree | 111f70dd8e190e40f382abdbf0aabc5dfe3fe149 /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign.xml | |
parent | 4d919cc9658419dfe07d8027576d2515027d3ff4 (diff) |
Support cloud-owner input param
If cloud-owner is passed in input, it should override the value
from properties file
Change-Id: I67b0e7e0b4fe546dbdfcaa24785ebd1b3b96e7b5
Issue-ID: SDNC-1260
Signed-off-by: Dan Timoney <dtimoney@att.com>
Former-commit-id: 131845c1b3185b5efb8b5bd287747c7086eface8
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign.xml')
-rw-r--r--[-rwxr-xr-x] | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign.xml index 1f6f5d85..5bccbb86 100755..100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign.xml @@ -7,6 +7,13 @@ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
<parameter name='contextPrefix' value='prop' />
</execute>
+ <switch test="`$network-topology-operation-input.network-request-input.cloud-owner != ''`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.cloud-region.cloud-owner' value='`$network-topology-operation-input.network-request-input.cloud-owner`' />
+ </set>
+ </outcome>
+ </switch>
<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="tenant"
key="cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND
|