From 056d0d23b9c89321abf5da10a596f2ddd396616a Mon Sep 17 00:00:00 2001 From: Dileep Ranganathan Date: Thu, 8 Mar 2018 10:35:17 -0800 Subject: [PATCH] Fix dependentOn for hpaCapability node Added cloud-region along with flavor in the dependentOn field. Modified hpa-feature-attribute to hpa-feature-attributes as it is an arraylist. Change-Id: I7b0c3ee6e08b3bea97a1ebaeeaa8bcaeb8bb2b00 Issue-ID: AAI-742 Signed-off-by: Dileep Ranganathan --- .../src/main/resources/dbedgerules/DbEdgeRules_v12.json | 13 +++++++++++++ .../src/main/resources/dbedgerules/DbEdgeRules_v13.json | 13 +++++++++++++ aai-schema/src/main/resources/oxm/aai_oxm_v12.xml | 10 +++++----- aai-schema/src/main/resources/oxm/aai_oxm_v13.xml | 10 +++++----- 4 files changed, 36 insertions(+), 10 deletions(-) diff --git a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json index ed34d44e..8ed9c93b 100644 --- a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json +++ b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json @@ -307,6 +307,19 @@ "default": "true", "description":"" }, + { + "from": "hpa-feature-attributes", + "to": "hpa-capability", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "!${direction}", + "SVC-INFRA": "!${direction}", + "prevent-delete": "NONE", + "default": "true", + "description":"" + }, { "from": "group-assignment", "to": "cloud-region", diff --git a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json index ed34d44e..8ed9c93b 100644 --- a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json +++ b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json @@ -307,6 +307,19 @@ "default": "true", "description":"" }, + { + "from": "hpa-feature-attributes", + "to": "hpa-capability", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "!${direction}", + "SVC-INFRA": "!${direction}", + "prevent-delete": "NONE", + "default": "true", + "description":"" + }, { "from": "group-assignment", "to": "cloud-region", diff --git a/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml b/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml index 196d00f0..805d5009 100644 --- a/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml +++ b/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml @@ -1,7 +1,7 @@