AAI-2154 Add EdgeRules to support BBS use case

generic-vnf to metadatum
pnf to metadatum
cp to metadatum

Containing service-instance will contain metadata as sub-object

Issue-ID: AAI-2154
Change-Id: Ie6f4520c3ca945128f9aaef01a07a4479782e276
Signed-off-by: Keong Lim <keong.lim@huawei.com>
diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v16/DbEdgeRules_bbs_v16.json b/aai-schema/src/main/resources/onap/dbedgerules/v16/DbEdgeRules_bbs_v16.json
new file mode 100644
index 0000000..d9e3a3a
--- /dev/null
+++ b/aai-schema/src/main/resources/onap/dbedgerules/v16/DbEdgeRules_bbs_v16.json
@@ -0,0 +1,40 @@
+{
+  "rules": [
+	{
+		"from": "metadatum",
+		"to": "generic-vnf",
+		"label": "org.onap.relationships.inventory.AppliesTo",
+		"direction": "OUT",
+		"multiplicity": "MANY2MANY",
+		"contains-other-v": "NONE",
+		"delete-other-v": "NONE",
+		"prevent-delete": "NONE",
+		"default": "true",
+		"description":"AAI-2154 For BBS Usecase"
+	},
+	{
+		"from": "metadatum",
+		"to": "pnf",
+		"label": "org.onap.relationships.inventory.AppliesTo",
+		"direction": "OUT",
+		"multiplicity": "MANY2MANY",
+		"contains-other-v": "NONE",
+		"delete-other-v": "NONE",
+		"prevent-delete": "NONE",
+		"default": "true",
+		"description":"AAI-2154 For BBS Usecase"
+	},
+	{
+		"from": "metadatum",
+		"to": "cp",
+		"label": "org.onap.relationships.inventory.AppliesTo",
+		"direction": "OUT",
+		"multiplicity": "MANY2MANY",
+		"contains-other-v": "NONE",
+		"delete-other-v": "NONE",
+		"prevent-delete": "NONE",
+		"default": "true",
+		"description":"AAI-2154 For BBS Usecase"
+	}
+  ]
+}