Add the EdgeRules ftl and additional changes to 19/8119/3
authorVenkata Harish K Kajur <vk250x@att.com>
Mon, 21 Aug 2017 02:43:54 +0000 (22:43 -0400)
committerVenkata Harish K Kajur <vk250x@att.com>
Mon, 21 Aug 2017 20:39:03 +0000 (16:39 -0400)
the dbedgerules json

Issue-Id: AAI-198

Change-Id: I426563d7647f521fd9542773cf46f679b26a8801
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
aai-core/src/main/resources/EdgeRules.ftl
aai-core/src/main/resources/dbedgerules/DbEdgeRules_v10.json
aai-core/src/main/resources/dbedgerules/DbEdgeRules_v8.json
aai-core/src/main/resources/dbedgerules/DbEdgeRules_v9.json

index ccabb7d..837f937 100644 (file)
@@ -21,6 +21,6 @@
 public static final Multimap<String, String> EdgeRules = new ImmutableSetMultimap.Builder<String, String>()
 <#list edgeRules as edgeRule>
         .putAll("${edgeRule["nodes"]}",
-                "${edgeRule["edge"]},${edgeRule["direction"]},${edgeRule["multiplicity"]},${edgeRule["lineage"]},${edgeRule["usesResource"]},${edgeRule["hasDelTarget"]},${edgeRule["SVC-INFRA"]}")
+                "${edgeRule["edge"]},${edgeRule["direction"]},${edgeRule["multiplicity"]},${edgeRule["lineage"]},${edgeRule["uses-resource"]},${edgeRule["has-del-target"]},${edgeRule["SVC-INFRA"]}")
 </#list>
 .build();
index 1b53035..0381090 100644 (file)
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "${direction}",
-                       "prevent-delete": "NONE"
+                       "prevent-delete": "!${direction}"
                },
                {
                        "from": "l3-interface-ipv6-address-list",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "${direction}",
-                       "prevent-delete": "NONE"
+                       "prevent-delete": "!${direction}"
                },
                {
                        "from": "l3-network",
index d8f33b3..6d5b06f 100644 (file)
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "${direction}",
-                       "prevent-delete": "NONE"
+                       "prevent-delete": "!${direction}"
                },
                {
                        "from": "l3-interface-ipv6-address-list",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "${direction}",
-                       "prevent-delete": "NONE"
+                       "prevent-delete": "!${direction}"
                },
                {
                        "from": "l3-network",
index 8009627..88801e4 100644 (file)
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "${direction}",
-                       "prevent-delete": "NONE"
+                       "prevent-delete": "!${direction}"
                },
                {
                        "from": "l3-interface-ipv6-address-list",
                        "contains-other-v": "NONE",
                        "delete-other-v": "NONE",
                        "SVC-INFRA": "${direction}",
-                       "prevent-delete": "NONE"
+                       "prevent-delete": "!${direction}"
                },
                {
                        "from": "l3-network",