From ba8a352eaab57a09d958b718b5c5a3b5410c2fe5 Mon Sep 17 00:00:00 2001 From: Keong Lim Date: Wed, 15 Aug 2018 15:32:17 +1000 Subject: [PATCH] AAI-1481 Add network-resource for CCVPN usecase Issue-ID: AAI-1481 Add network-resource element to network namespace. Add CCVPN EdgeRules for network-resource to vpn-binding and pnf. Update multiplicity. Change pnf from sub-component to COUSIN edge as workaround. Change-Id: I4b288406a272ccdb6243d1e13555a02aa6354a83 Signed-off-by: Keong Lim --- .../resources/onap/aai_schema/aai_schema_v14.xsd | 60 ++++++++++++++++++++++ .../dbedgerules/v14/DbEdgeRules_ccvpn_v14.json | 24 +++++++++ .../main/resources/onap/oxm/v14/aai_oxm_v14.xml | 53 +++++++++++++++++++ 3 files changed, 137 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 3b34c959..0a9f198e 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 @@ -8759,6 +8759,65 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" + + + + + @org.onap.aai.annotations.Metadata(description="Instance of a network-resource",indexedProps="network-id,provider-id,client-id,te-topo-id",nameProps="network-id",searchable="network-id",uniqueProps="network-id",container="network-resources",namespace="network") + + + + + + + @org.onap.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this network-resource by id") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the provider of this network-resource.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the client of this network-resource.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the te-topo of this network-resource.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the link to get more information for this object.") + + + + + + + + + + + + @org.onap.aai.annotations.Metadata(description="Collection of network-resources") + + + + + + + @@ -8791,6 +8850,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 c5f2f1d1..3f77fbb7 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 @@ -71,6 +71,30 @@ "prevent-delete": "!${direction}", "default": "true", "description":"For CCVPN Usecase" + }, + { + "from": "network-resource", + "to": "vpn-binding", + "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" + }, + { + "from": "pnf", + "to": "network-resource", + "label": "tosca.relationships.network.LinksTo", + "direction": "OUT", + "multiplicity": "MANY2MANY", + "contains-other-v": "NONE", + "delete-other-v": "!${direction}", + "prevent-delete": "${direction}", + "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 3dde2409..70881b5b 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 @@ -3087,6 +3087,7 @@ + @@ -7668,5 +7669,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.16.6