From a6872c558e2e584422bc4dc24e233e6757c34281 Mon Sep 17 00:00:00 2001 From: Keong Lim Date: Mon, 13 Aug 2018 15:49:04 +1000 Subject: [PATCH] AAI-1468 -1480 Add Conn /lan-port-config for CCVPN Issue-ID: AAI-1480 Add lan-port-config schema element to network namespace Add dhcp-service schema element Add CCVPN EdgeRules for lan-port-config to service-instance and dhcp-service Update lan-port-config with ipv4-address and ipv6-address. Update dhcp-service with server-ipv4-address and server-ipv6-address. Accidentally squashed another two commits together: Issue-ID: AAI-1468 Add connectivities sub-component to "network" namespace. Add connectivities element, which is sequence of "connectivity". Add connectivity element, which has numerous properties. Add CCVPN EdgeRules for connectivity to service-instance and vpn-binding Change-Id: I78f4cdc906e43750bb319ba4f3bdb6483ed7ea24 Signed-off-by: Keong Lim --- .../resources/onap/aai_schema/aai_schema_v14.xsd | 377 ++++++++++++++++++++- .../dbedgerules/v14/DbEdgeRules_ccvpn_v14.json | 48 +++ .../main/resources/onap/oxm/v14/aai_oxm_v14.xml | 311 ++++++++++++++++- 3 files changed, 728 insertions(+), 8 deletions(-) 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 c7c5eee1..3b34c959 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 @@ -5084,17 +5084,17 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" - + - @org.onap.aai.annotations.Metadata(description="Store the model-version-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="Store the model-invariant-id for this object.") + @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}") @@ -8392,6 +8392,373 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" + + + + + @org.onap.aai.annotations.Metadata(description="Instance of a connectivity",indexedProps="connectivity-id,etht-svc-name,bandwidth-profile-name,vpn-type,color-aware,coupling-flag,access-provider-id,access-client-id,access-topology-id,access-node-id,access-ltp-id,operational-status",nameProps="etht-svc-name",searchable="connectivity-id",uniqueProps="connectivity-id",container="connectivities",namespace="network") + + + + + + + @org.onap.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this connectivity by id") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the name of a bandwidth profile.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the type of a bandwidth profile.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the CIR of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the EIR of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the CBS of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the EBS of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the color-awareness of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the coupling flag of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="The ethernet service name for this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the access provider of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the access client of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the access topology of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the access node of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the id of the access ltp of this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the link to get more information for this connectivity.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the cvlan for this connectivity.") + + + + + + + @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 connectivities") + + + + + + + + + + + + @org.onap.aai.annotations.Metadata(description="Instance of a dhcp-service",indexedProps="dhcp-service-id,dhcp-service-type,domain-name,server-ipv4-address,server-ipv6-address",nameProps="domain-name",searchable="dhcp-service-id",uniqueProps="dhcp-service-id",container="dhcp-services",dependentOn="lan-port-config",namespace="network") + + + + + + + @org.onap.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this dhcp-service by id") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the server-ip4-address of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the server-ipv6-address of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the service-enable of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the dhcp-service-type of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the lease-time of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the domain-name of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the dns of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the ntp-primary of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the ntp-secondary of this dhcp-service.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the nbns of this dhcp-service.") + + + + + + + + + + + + @org.onap.aai.annotations.Metadata(description="Collection of dhcp-services") + + + + + + + + + + + + @org.onap.aai.annotations.Metadata(description="Instance of a lan-port-config",indexedProps="lan-port-config-id,lan-port-config-name,device-id,port-id,ipv4-address,ipv6-address,vlan-tag",nameProps="lan-port-config-name",searchable="lan-port-config-id",uniqueProps="lan-port-config-id",container="lan-port-configs",namespace="network") + + + + + + + @org.onap.aai.annotations.Metadata(isKey=true,description="Uniquely identifies this lan-port-config by id") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the name of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the description of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the device-id of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the port-id of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the ipv4-address of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the ipv6-address of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the vlan-tag of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the input-bandwidth of this lan-port-config.") + + + + + + + @org.onap.aai.annotations.Metadata(description="Store the output-bandwidth of this lan-port-config.") + + + + + + + + + + + + + @org.onap.aai.annotations.Metadata(description="Collection of lan-port-configs") + + + + + + + @@ -8422,6 +8789,8 @@ 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 468e6a8d..c5f2f1d1 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 @@ -23,6 +23,54 @@ "prevent-delete": "NONE", "default": "true", "description":"For CCVPN Usecase" + }, + { + "from": "connectivity", + "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": "connectivity", + "to": "vpn-binding", + "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": "lan-port-config", + "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": "lan-port-config", + "to": "dhcp-service", + "label": "org.onap.relationships.inventory.Uses", + "direction": "OUT", + "multiplicity": "ONE2MANY", + "contains-other-v": "${direction}", + "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 a11298bf..3dde2409 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 @@ -3085,6 +3085,8 @@ + + @@ -3594,14 +3596,21 @@ - + - + + + + - + - + + + + + @@ -7365,5 +7374,299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.16.6