From 71e2c2eb7b17aaa35ba3a5c5688d6fed9c231bdf Mon Sep 17 00:00:00 2001 From: Keong Lim Date: Wed, 15 Aug 2018 17:47:50 +1000 Subject: AAI-1484 Add device schema for CCVPN usecase Issue-ID: AAI-1484 Add device element to network namespace. Add CCVPN EdgeRules for device to service-instance and generic-vnf. Change-Id: Iad4033dc5bba72cf0773cccbe19429cf965df0c5 Signed-off-by: Keong Lim --- .../resources/onap/aai_schema/aai_schema_v14.xsd | 123 +++++++++++++++++++++ .../dbedgerules/v14/DbEdgeRules_ccvpn_v14.json | 24 ++++ .../main/resources/onap/oxm/v14/aai_oxm_v14.xml | 103 +++++++++++++++++ 3 files changed, 250 insertions(+) diff --git a/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v14.xsd b/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v14.xsd index 4e4874d8..55274239 100644 --- a/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v14.xsd +++ b/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v14.xsd @@ -9020,6 +9020,128 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" + + + + + @org.onap.aai.annotations.Metadata(description="Instance of a device",indexedProps="device-id,device-name,esn,vendor,class,type,version,system-ip,operational-status",nameProps="device-name",searchable="device-id",uniqueProps="device-id",container="devices",namespace="network") + + + + + + + @org.onap.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this device by id") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the esn of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the name of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the description of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the vendor of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the class of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the type of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the version of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the system-ip of this device.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the link to get more information for this object.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the operational-status for this object.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the model-customization-id for this object.") + + + + + + + @org.onap.aai.annotations.Metadata(description="the ASDC model id for this resource or service model.",visibility="deployment",requires="model-version-id",dbAlias="model-invariant-id-local") + + + + + + + @org.onap.aai.annotations.Metadata(description="the ASDC model version for this resource or service model.",visibility="deployment",requires="model-invariant-id",dbAlias="model-version-id-local",privateEdge="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}") + + + + + + + + + + + + @org.onap.aai.annotations.Metadata(description="Collection of devices") + + + + + + + @@ -9055,6 +9177,7 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" + diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_ccvpn_v14.json b/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_ccvpn_v14.json index 0049b997..c4611931 100644 --- a/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_ccvpn_v14.json +++ b/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_ccvpn_v14.json @@ -143,6 +143,30 @@ "prevent-delete": "NONE", "default": "true", "description":"For CCVPN Usecase" + }, + { + "from": "device", + "to": "service-instance", + "label": "org.onap.relationships.inventory.PartOf", + "direction": "OUT", + "multiplicity": "ONE2MANY", + "contains-other-v": "NONE", + "delete-other-v": "NONE", + "prevent-delete": "NONE", + "default": "true", + "description":"For CCVPN Usecase" + }, + { + "from": "device", + "to": "generic-vnf", + "label": "org.onap.relationships.inventory.Uses", + "direction": "OUT", + "multiplicity": "ONE2MANY", + "contains-other-v": "NONE", + "delete-other-v": "NONE", + "prevent-delete": "NONE", + "default": "true", + "description":"For CCVPN Usecase" } ] } diff --git a/aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml b/aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml index 5e80c6e0..f72756e2 100644 --- a/aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml +++ b/aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml @@ -3090,6 +3090,7 @@ + @@ -7897,5 +7898,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg