From e477c0a6f564ddf8dea29cc6e2a4c3d684dadf11 Mon Sep 17 00:00:00 2001 From: Mehreen Kaleem Date: Thu, 3 Dec 2020 05:51:33 +0000 Subject: Updated AAI schema and DBEdge rules for the MDONS use Case Issue-ID: AAI-3225 Signed-off-by: Mehreen Kaleem Change-Id: I207ee99270a1bf6d346e9e4fd4431bb79fda3be3 (cherry picked from commit a7e04ac9a1faaa6b219cd1544269f04fa04ddd9b) --- .../onap/dbedgerules/v19/DbEdgeRules_ccvpn_v19.json | 12 ------------ .../onap/dbedgerules/v20/DbEdgeRules_ccvpn_v20.json | 12 ------------ .../main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json | 4 ++-- .../onap/dbedgerules/v21/DbEdgeRules_ccvpn_v21.json | 12 ------------ .../main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json | 4 ++-- aai-schema/src/main/resources/onap/oxm/v19/aai_oxm_v19.xml | 4 ++-- aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml | 6 +++--- aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml | 6 +++--- 8 files changed, 12 insertions(+), 48 deletions(-) diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v19/DbEdgeRules_ccvpn_v19.json b/aai-schema/src/main/resources/onap/dbedgerules/v19/DbEdgeRules_ccvpn_v19.json index 396d970..9f191f7 100644 --- a/aai-schema/src/main/resources/onap/dbedgerules/v19/DbEdgeRules_ccvpn_v19.json +++ b/aai-schema/src/main/resources/onap/dbedgerules/v19/DbEdgeRules_ccvpn_v19.json @@ -531,18 +531,6 @@ "prevent-delete": "NONE", "default": "true", "description":"For MDONS usecase" - }, - { - "from": "label-restriction", - "to": "bandwidth-attribute", - "label": "org.onap.relationships.inventory.BelongsTo", - "direction": "OUT", - "multiplicity": "MANY2ONE", - "contains-other-v": "!${direction}", - "delete-other-v": "!${direction}", - "prevent-delete": "NONE", - "default": "true", - "description":"For MDONS usecase" } ] } diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_ccvpn_v20.json b/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_ccvpn_v20.json index 883c6ef..2f295e7 100644 --- a/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_ccvpn_v20.json +++ b/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_ccvpn_v20.json @@ -532,18 +532,6 @@ "prevent-delete": "NONE", "default": "true", "description":"For MDONS usecase" - }, - { - "from": "label-restriction", - "to": "bandwidth-attribute", - "label": "org.onap.relationships.inventory.BelongsTo", - "direction": "OUT", - "multiplicity": "MANY2ONE", - "contains-other-v": "!${direction}", - "delete-other-v": "!${direction}", - "prevent-delete": "NONE", - "default": "true", - "description":"For MDONS usecase" } ] } diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json b/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json index 977af56..a2065da 100644 --- a/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json +++ b/aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json @@ -1481,9 +1481,9 @@ "to": "logical-link", "label": "tosca.relationships.network.LinksTo", "direction": "OUT", - "multiplicity": "MANY2ONE", + "multiplicity": "MANY2MANY", "contains-other-v": "NONE", - "delete-other-v": "NONE", + "delete-other-v": "${direction}", "prevent-delete": "NONE", "default": "true", "description":"" diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_ccvpn_v21.json b/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_ccvpn_v21.json index f1dfae3..0c7e77c 100644 --- a/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_ccvpn_v21.json +++ b/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_ccvpn_v21.json @@ -532,18 +532,6 @@ "prevent-delete": "NONE", "default": "true", "description":"For MDONS usecase" - }, - { - "from": "label-restriction", - "to": "bandwidth-attribute", - "label": "org.onap.relationships.inventory.BelongsTo", - "direction": "OUT", - "multiplicity": "MANY2ONE", - "contains-other-v": "!${direction}", - "delete-other-v": "!${direction}", - "prevent-delete": "NONE", - "default": "true", - "description":"For MDONS usecase" } ] } diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json b/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json index 2c2c0fc..1e748e2 100644 --- a/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json +++ b/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json @@ -1457,9 +1457,9 @@ "to": "logical-link", "label": "tosca.relationships.network.LinksTo", "direction": "OUT", - "multiplicity": "MANY2ONE", + "multiplicity": "MANY2MANY", "contains-other-v": "NONE", - "delete-other-v": "NONE", + "delete-other-v": "${direction}", "prevent-delete": "NONE", "default": "true", "description": "" diff --git a/aai-schema/src/main/resources/onap/oxm/v19/aai_oxm_v19.xml b/aai-schema/src/main/resources/onap/oxm/v19/aai_oxm_v19.xml index fc83e81..60172da 100644 --- a/aai-schema/src/main/resources/onap/oxm/v19/aai_oxm_v19.xml +++ b/aai-schema/src/main/resources/onap/oxm/v19/aai_oxm_v19.xml @@ -2515,7 +2515,7 @@ - + diff --git a/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml b/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml index 41a7e72..0304670 100644 --- a/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml +++ b/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml @@ -2495,7 +2495,7 @@ - + @@ -2559,7 +2559,7 @@ - + diff --git a/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml b/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml index 716b98b..aff32ee 100644 --- a/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml +++ b/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml @@ -3040,7 +3040,7 @@ - + @@ -3104,7 +3104,7 @@ - + -- cgit 1.2.3-korg