From 8d980b759d7e878530c6ebf404fe89e99ed0aab4 Mon Sep 17 00:00:00 2001 From: Dileep Ranganathan Date: Tue, 30 Jan 2018 07:18:31 -0800 Subject: [PATCH] Hardware Platform Awareness (HPA) - Schema Expanding the blob of string to a more generic representation Added new nodes for HPA enablement Change-Id: I3f861934856efbe7d8b08857dadf3c3e9a4baf96 Issue-ID: AAI-742 Signed-off-by: Dileep Ranganathan --- .../resources/dbedgerules/DbEdgeRules_v12.json | 26 +++++++ .../resources/dbedgerules/DbEdgeRules_v13.json | 26 +++++++ aai-schema/src/main/resources/oxm/aai_oxm_v12.xml | 87 ++++++++++++++++++++- aai-schema/src/main/resources/oxm/aai_oxm_v13.xml | 89 +++++++++++++++++++++- 4 files changed, 225 insertions(+), 3 deletions(-) diff --git a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json index 4b33f0f2..ed34d44e 100644 --- a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json +++ b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json @@ -281,6 +281,32 @@ "default": "true", "description":"" }, + { + "from": "hpa-capability", + "to": "flavor", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "NONE", + "SVC-INFRA": "NONE", + "prevent-delete": "!${direction}", + "default": "true", + "description":"" + }, + { + "from": "hpa-capability", + "to": "cloud-region", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "NONE", + "SVC-INFRA": "NONE", + "prevent-delete": "!${direction}", + "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 4b33f0f2..ed34d44e 100644 --- a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json +++ b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json @@ -281,6 +281,32 @@ "default": "true", "description":"" }, + { + "from": "hpa-capability", + "to": "flavor", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "NONE", + "SVC-INFRA": "NONE", + "prevent-delete": "!${direction}", + "default": "true", + "description":"" + }, + { + "from": "hpa-capability", + "to": "cloud-region", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "NONE", + "SVC-INFRA": "NONE", + "prevent-delete": "!${direction}", + "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 6b21a1da..196d00f0 100644 --- a/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml +++ b/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml @@ -490,6 +490,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -591,6 +666,11 @@ + + + + + @@ -1408,7 +1488,7 @@ - + @@ -1451,6 +1531,11 @@ + + + + + diff --git a/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml b/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml index bd6676d2..9c4272b1 100644 --- a/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml +++ b/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml @@ -490,6 +490,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -591,7 +666,12 @@ - + + + + + + @@ -1408,7 +1488,7 @@ - + @@ -1451,6 +1531,11 @@ + + + + + -- 2.16.6