From: Munir Ahmad Date: Tue, 6 Jul 2021 11:34:49 +0000 (-0400) Subject: aai-schema introduce composed-resource to build parent child relationship between X-Git-Tag: 1.9.0~5^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ed3eb6edde0bc6103423105d930e9f3b40313d80;hp=30fb062485008c5006a480c8c4fe2fcc7dbe5961;p=aai%2Fschema-service.git aai-schema introduce composed-resource to build parent child relationship between service instances this allows us to identify which object is parent and which is child service Issue-ID: AAI-3104 Signed-off-by: Munir Ahmad Change-Id: I9dcf213015e2e5ae19bb4ca11496d5d93e6fea44 --- diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v24/DbEdgeRules_v24.json b/aai-schema/src/main/resources/onap/dbedgerules/v24/DbEdgeRules_v24.json index 62ac5a7..6826a78 100644 --- a/aai-schema/src/main/resources/onap/dbedgerules/v24/DbEdgeRules_v24.json +++ b/aai-schema/src/main/resources/onap/dbedgerules/v24/DbEdgeRules_v24.json @@ -1779,6 +1779,30 @@ "default": "true", "description": "" }, + { + "from": "composed-resource", + "to": "service-instance", + "label": "org.onap.relationships.inventory.ComposedOf", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "!${direction}", + "prevent-delete": "NONE", + "default": "true", + "description": "" + }, + { + "from": "service-instance", + "to": "composed-resource", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "ONE2ONE", + "contains-other-v": "NONE", + "delete-other-v": "NONE", + "prevent-delete": "NONE", + "default": "true", + "description": "" + }, { "from": "service-instance", "to": "instance-group", diff --git a/aai-schema/src/main/resources/onap/oxm/v24/aai_oxm_v24.xml b/aai-schema/src/main/resources/onap/oxm/v24/aai_oxm_v24.xml index ff8eadb..6c730a3 100644 --- a/aai-schema/src/main/resources/onap/oxm/v24/aai_oxm_v24.xml +++ b/aai-schema/src/main/resources/onap/oxm/v24/aai_oxm_v24.xml @@ -4987,6 +4987,7 @@ + @@ -9834,7 +9835,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +