aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Reehil <william.reehil@att.com>2021-08-16 12:57:55 +0000
committerGerrit Code Review <gerrit@onap.org>2021-08-16 12:57:55 +0000
commit5bd2a13a29893bdc834d865aef8d8505a8d36eb4 (patch)
treebfb7feb707ab08a6bd0ad70dc39ae6d9a7463e67
parentcfd3f02ea5c9d6eb01d6d9ddd10c5da9778c35a1 (diff)
parent8a91f32b353a049d0f6a59ffae6a023a3a43c79c (diff)
Merge "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"
-rw-r--r--aai-schema/src/main/resources/onap/dbedgerules/v24/DbEdgeRules_v24.json48
-rw-r--r--aai-schema/src/main/resources/onap/oxm/v24/aai_oxm_v24.xml24
2 files changed, 27 insertions, 45 deletions
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 b289a6b..becf3a4 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,30 +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": "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 c0c2c87..723be8e 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
@@ -9838,7 +9838,7 @@
</java-type>
<java-type name="ComposedResources">
<xml-properties>
- <xml-property name="description" value="This object is used to store slices of services being offered"/>
+ <xml-property name="description" value="This object is used to represent parent-child relationship between service-instance"/>
</xml-properties>
<xml-root-element name="composed-resources"/>
<java-attributes>
@@ -9864,23 +9864,6 @@
<xml-property name="description" value="Link back to more information in the controller"/>
</xml-properties>
</xml-element>
- <xml-element java-attribute="modelInvariantId" name="model-invariant-id" type="java.lang.String">
- <xml-properties>
- <xml-property name="description" value="the ASDC model id for this resource or service model."/>
- <xml-property name="visibility" value="deployment"/>
- <xml-property name="requires" value="model-version-id"/>
- <xml-property name="dbAlias" value="model-invariant-id-local"/>
- </xml-properties>
- </xml-element>
- <xml-element java-attribute="modelVersionId" name="model-version-id" type="java.lang.String">
- <xml-properties>
- <xml-property name="description" value="the ASDC model version for this resource or service model."/>
- <xml-property name="visibility" value="deployment"/>
- <xml-property name="requires" value="model-invariant-id"/>
- <xml-property name="dbAlias" value="model-version-id-local"/>
- <xml-property name="privateEdge" value="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}"/>
- </xml-properties>
- </xml-element>
<xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
<xml-properties>
<xml-property name="description" value="Concurrency value"/>
@@ -9962,14 +9945,13 @@
<xml-property name="description" value="Identifies the version of the upstream source."/>
</xml-properties>
</xml-element>
- <xml-element java-attribute="tunnelXconnects" name="tunnel-xconnects" type="inventory.aai.onap.org.v24.TunnelXconnects"/>
<xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v24.RelationshipList"/>
</java-attributes>
<xml-properties>
- <xml-property name="description" value="Represents a slice or partial piece of a resource that gets separately composed"/>
+ <xml-property name="description" value="Represents a resource that acts as a bridge between service-instance to define parent-child relationship"/>
<xml-property name="nameProps" value="description,composed-resource-name"/>
- <xml-property name="indexedProps" value="id,model-invariant-id,model-version-id,type,role,composed-resource-name,access-provider-id,access-client-id,access-topology-id,access-node-id,access-ltp-id,vpn-name,orchestration-status,data-owner,data-source,data-source-version"/>
+ <xml-property name="indexedProps" value="id,type,role,composed-resource-name,access-provider-id,access-client-id,access-topology-id,access-node-id,access-ltp-id,vpn-name,orchestration-status,data-owner,data-source,data-source-version"/>
<xml-property name="dependentOn" value="service-instance"/>
<xml-property name="container" value="composed-resources"/>
<!-- <xml-property name="namespace" value="network" /> -->