AAI-1923 Problem deleting due to EdgeRules 76/72876/1
authorKeong Lim <keong.lim@huawei.com>
Fri, 16 Nov 2018 05:33:08 +0000 (16:33 +1100)
committerKeong Lim <keong.lim@huawei.com>
Fri, 16 Nov 2018 05:37:49 +0000 (16:37 +1100)
Issue-ID: AAI-1923

Fixed EdgeRules for ext-aai-info to esr-system-info
Fixed EdgeRules for lan-port-config to dhcp-service

Fixed EdgeRules for pnf to network-resource
Fixed EdgeRules for logical-link to ext-aai-network
Fixed EdgeRules for vpn-binding to ext-aai-network
Fixed EdgeRules for pnf to ext-aai-network
Fixed EdgeRules for connectivity to ext-aai-network
Fixed EdgeRules for lan-port-config to ext-aai-network
Fixed EdgeRules for network-resource to ext-aai-network
Fixed EdgeRules for site-resource to ext-aai-network
Fixed EdgeRules for sdwan-vpn to ext-aai-network
Fixed EdgeRules for device to ext-aai-network
Fixed EdgeRules for wan-port-config to ext-aai-network

Appears to be a problem with this combo in EdgeRules:

- "delete-other-v": "${direction}",
- "prevent-delete": "!${direction}",

Break the dependency by making one of these values "NONE".

Change-Id: I82eba77a9cf924c91a0f8de88408c9d103875160
Signed-off-by: Keong Lim <keong.lim@huawei.com>
aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_ccvpn_v14.json

index 62b6c52..8231b16 100644 (file)
@@ -68,7 +68,7 @@
                "multiplicity": "ONE2MANY",
                "contains-other-v": "${direction}",
                "delete-other-v": "${direction}",
-               "prevent-delete": "!${direction}",
+               "prevent-delete": "NONE",
                "default": "true",
                "description":"For CCVPN Usecase"
        },
@@ -91,7 +91,7 @@
                "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"
                "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"