Fix duplicate edgerules causing issues in creation 17/112417/4
authorHarish Venkata Kajur <vk250x@att.com>
Wed, 9 Sep 2020 20:04:51 +0000 (16:04 -0400)
committerHarish Venkata Kajur <vk250x@att.com>
Wed, 9 Sep 2020 20:28:24 +0000 (16:28 -0400)
Issue-ID: SO-3216
Change-Id: I140445445625d34edbc82305da323a5394433e2b
Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
12 files changed:
aai-schema/src/main/resources/onap/dbedgerules/v10/DbEdgeRules_v10.json
aai-schema/src/main/resources/onap/dbedgerules/v11/DbEdgeRules_v11.json
aai-schema/src/main/resources/onap/dbedgerules/v12/DbEdgeRules_v12.json
aai-schema/src/main/resources/onap/dbedgerules/v13/DbEdgeRules_v13.json
aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_v14.json
aai-schema/src/main/resources/onap/dbedgerules/v15/DbEdgeRules_v15.json
aai-schema/src/main/resources/onap/dbedgerules/v16/DbEdgeRules_v16.json
aai-schema/src/main/resources/onap/dbedgerules/v17/DbEdgeRules_v17.json
aai-schema/src/main/resources/onap/dbedgerules/v18/DbEdgeRules_v18.json
aai-schema/src/main/resources/onap/dbedgerules/v19/DbEdgeRules_v19.json
aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json
aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json

index 1f74945..b62a5ab 100644 (file)
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "direction": "OUT",
                        "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true"
                },
index bd9d617..2cde2cb 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true"
                },
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index 087a71a..f1a4a4b 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index fb45589..4296bb3 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index f7e762c..6e07bfb 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "generic-vnf",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index 34dc328..089b7bb 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index 7c905db..31d4d66 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index 34dc328..089b7bb 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index 1f33c7b..267a1ab 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index 575c853..93d5028 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
index ee10797..7926dd4 100644 (file)
                        "direction": "OUT",
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
+                       "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
                        "to": "l3-network",
                        "label": "org.onap.relationships.inventory.ComposedOf",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "to": "l-interface",
                        "label": "org.onap.relationships.inventory.Uses",
                        "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                         "delete-other-v": "NONE",
                         "SVC-INFRA": "NONE",
                         "prevent-delete": "NONE",
-                        "default": "true",
+                        "default": "false",
                         "description":""
                 },
                 {
                         "delete-other-v": "NONE",
                         "SVC-INFRA": "NONE",
                         "prevent-delete": "NONE",
-                        "default": "true",
+                        "default": "false",
                         "description":""
                 },
                 {
                        "default": "true",
                        "description":""
                },
-               {
-                       "from": "vlan-tag",
-                       "to": "l3-network",
-                       "label": "org.onap.relationships.inventory.BelongsTo",
-                       "direction": "OUT",
-                       "multiplicity": "MANY2MANY",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description":""
-               },
                {
                        "from": "vlan-tag",
                        "to": "cloud-region",
                        "default": "true",
                        "description":""
                },
-               {
-                        "from": "configuration",
-                        "to": "lag-interface",
-                        "label": "org.onap.relationships.inventory.AppliesTo",
-                        "direction": "OUT",
-                        "multiplicity": "MANY2ONE",
-                        "contains-other-v": "NONE",
-                        "delete-other-v": "NONE",
-                        "prevent-delete": "NONE",
-                        "default": "true",
-                        "description":""
-                },
                {
                        "from": "communication-service-profile",
                        "to": "service-instance",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description": "The dns cname record that applies to an A-record (ipv4) and/or quad-A-record (ipv6)."
+               },
+               {
+                       "from": "profile",
+                       "to": "pnf",
+                       "label": "org.onap.relationships.inventory.AppliesTo",
+                       "direction": "OUT",
+                       "multiplicity": "MANY2MANY",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "NONE",
+                       "SVC-INFRA": "NONE",
+                       "prevent-delete": "${direction}",
+                       "default": "true",
+                       "description": "A profile (set of characteristics) applies to the pnf."
+               },
+               {
+                       "from": "profile",
+                       "to": "pserver",
+                       "label": "org.onap.relationships.inventory.AppliesTo",
+                       "direction": "OUT",
+                       "multiplicity": "MANY2MANY",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "NONE",
+                       "SVC-INFRA": "NONE",
+                       "prevent-delete": "${direction}",
+                       "default": "true",
+                       "description": "A profile (set of characteristics) applies to the pserver."
                }
-
        ]
 }
 
index fd91b61..e6001b0 100644 (file)
                        "default": "true",
                        "description": ""
                },
-               {
-                       "from": "configuration",
-                       "to": "logical-link",
-                       "label": "org.onap.relationships.inventory.Uses",
-                       "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "${direction}",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": ""
-               },
                {
                        "from": "metadatum",
                        "to": "configuration",
                        "default": "true",
                        "description": ""
                },
-               {
-                       "from": "service-subscription",
-                       "to": "customer",
-                       "label": "org.onap.relationships.inventory.BelongsTo",
-                       "direction": "OUT",
-                       "multiplicity": "MANY2ONE",
-                       "contains-other-v": "!${direction}",
-                       "delete-other-v": "!${direction}",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": ""
-               },
                {
                        "from": "dvs-switch",
                        "to": "availability-zone",
                        "default": "true",
                        "description": ""
                },
-               {
-                       "from": "service-instance",
-                       "to": "l3-network",
-                       "label": "org.onap.relationships.inventory.ComposedOf",
-                       "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": ""
-               },
                {
                        "from": "service-instance",
                        "to": "p-interface",
                        "default": "true",
                        "description": ""
                },
-               {
-                       "from": "lag-interface",
-                       "to": "l-interface",
-                       "label": "org.onap.relationships.inventory.Uses",
-                       "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
-                       "prevent-delete": "NONE",
-                       "default": "false",
-                       "description": ""
-               },
                {
                        "from": "line-of-business",
                        "to": "generic-vnf",
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
-                       "default": "true",
+                       "default": "false",
                        "description": ""
                },
                {
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
-                       "default": "true",
+                       "default": "false",
                        "description": ""
                },
                {
                        "default": "true",
                        "description": ""
                },
-               {
-                       "from": "vlan-tag",
-                       "to": "l3-network",
-                       "label": "org.onap.relationships.inventory.BelongsTo",
-                       "direction": "OUT",
-                       "multiplicity": "MANY2MANY",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": ""
-               },
                {
                        "from": "vlan-tag",
                        "to": "cloud-region",
                        "default": "true",
                        "description": ""
                },
-               {
-                       "from": "l3-network",
-                       "to": "l3-network",
-                       "label": "org.onap.relationships.inventory.Uses",
-                       "direction": "OUT",
-                       "multiplicity": "MANY2MANY",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
-                       "SVC-INFRA": "NONE",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": ""
-               },
                {
                        "from": "generic-vnf",
                        "to": "instance-group",
                        "default": "true",
                        "description": "A vrf uses many l3-networks"
                },
-               {
-                       "from": "configuration",
-                       "to": "vrf",
-                       "label": "org.onap.relationships.inventory.Uses",
-                       "direction": "OUT",
-                       "multiplicity": "ONE2MANY",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": "A Configuration uses VRFs"
-               },
                {
                        "from": "vrf",
                        "to": "l-interface",
                        "default": "true",
                        "description": ""
                },
-               {
-                       "from": "configuration",
-                       "to": "lag-interface",
-                       "label": "org.onap.relationships.inventory.AppliesTo",
-                       "direction": "OUT",
-                       "multiplicity": "MANY2ONE",
-                       "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": ""
-               },
                {
                        "from": "communication-service-profile",
                        "to": "service-instance",
                        "default": "false",
                        "description": "service-instance Uses an owning-entity"
                },
-               {
-                       "from": "service-instance",
-                       "to": "service-subscription",
-                       "label": "org.onap.relationships.inventory.BelongsTo",
-                       "direction": "OUT",
-                       "multiplicity": "MANY2ONE",
-                       "contains-other-v": "!${direction}",
-                       "delete-other-v": "!${direction}",
-                       "prevent-delete": "NONE",
-                       "default": "true",
-                       "description": "service-instance BelongsTo service-subscription"
-               },
                {
                        "from": "service-instance",
                        "to": "vrf",