fix v20 schema changes
[aai/schema-service.git] / aai-schema / src / main / resources / onap / dbedgerules / v20 / DbEdgeRules_ccvpn_v20.json
index 68f2986..f007e0a 100644 (file)
@@ -1,3 +1,4 @@
+
 {
   "rules": [
        {
@@ -80,7 +81,7 @@
                "multiplicity": "ONE2MANY",
                "contains-other-v": "${direction}",
                "delete-other-v": "${direction}",
-               "prevent-delete": "!${direction}",
+               "prevent-delete": "NONE",
                "default": "true",
                "description":"For CCVPN Usecase"
        },
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
                "delete-other-v": "!${direction}",
-               "prevent-delete": "${direction}",
+               "prevent-delete": "NONE",
                "default": "true",
                "description":"For CCVPN Usecase"
        },
                "default": "true",
                "description":"For CCVPN Usecase"
        },
+       {
+               "from": "sdwan-vpn",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+        {
+               "from": "connectivity",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+        {
+               "from": "uni",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+       {
+               "from": "site-resource",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+       {
+               "from": "wan-port-config",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+       {
+               "from": "lan-port-config",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
        {
                "from": "wan-port-config",
                "to": "service-instance",
                "label": "org.onap.relationships.inventory.PartOf",
                "direction": "OUT",
-               "multiplicity": "ONE2MANY",
+               "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
                "delete-other-v": "NONE",
                "prevent-delete": "NONE",
                "multiplicity": "ONE2MANY",
                "contains-other-v": "${direction}",
                "delete-other-v": "${direction}",
-               "prevent-delete": "!${direction}",
+               "prevent-delete": "NONE",
                "default": "true",
                "description":"For CCVPN Usecase"
        },
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
                "direction": "OUT",
                "multiplicity": "MANY2MANY",
                "contains-other-v": "NONE",
-               "delete-other-v": "${direction}",
+               "delete-other-v": "NONE",
                "prevent-delete": "!${direction}",
                "default": "true",
                "description":"For CCVPN Usecase"
-       }
+       },
+        {
+               "from": "tunnel-termination-point",
+               "to": "pnf",
+               "label": "tosca.relationships.network.BindsTo",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+       {
+               "from": "p-interface",
+               "to": "tunnel-termination-point",
+               "label": "tosca.relationships.network.BindsTo",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+        {
+               "from": "p-interface",
+               "to": "interlayer-attachment",
+               "label": "tosca.relationships.network.LinksTo",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+
+       },
+        {
+               "from": "tunnel-termination-point",
+               "to": "interlayer-attachment",
+               "label": "tosca.relationships.network.LinksTo",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+
+       },
+       {
+               "from": "uni",
+               "to": "p-interface",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+        {
+               "from": "logical-link",
+               "to": "te-link-attribute",
+               "label": "tosca.relationships.network.LinksTo",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+
+       },
+        {
+               "from": "label-restriction",
+               "to": "te-link-attribute",
+               "label": "tosca.relationships.network.LinksTo",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+
+       },
+        {
+                "from": "bandwidth-attribute",
+                "to": "p-interface",
+                "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"
+        },
+        {
+                "from": "available-bandwidth",
+                "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"
+        },
+        {
+                "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"
+        }
   ]
 }