diff options
author | Jimmy Forsyth <jf2512@att.com> | 2018-08-28 13:15:42 -0400 |
---|---|---|
committer | Jimmy Forsyth <jf2512@att.com> | 2018-08-28 13:16:01 -0400 |
commit | 6e9946fc4fec34a8a248416bee868ed9a531de70 (patch) | |
tree | 35dd15ba59f10e68ce3d1b6d663b37efb2c1f77b /aai-schema/src/main/resources | |
parent | dfef19e542581df2f69c263721fd6ead3752549d (diff) |
Add pnp schema and edgerules files
Issue-ID: AAI-1551
Change-Id: I8e7e70b01de1f8387694e2398d3f0d9e1080f1f9
Signed-off-by: Jimmy Forsyth <jf2512@att.com>
Diffstat (limited to 'aai-schema/src/main/resources')
-rw-r--r-- | aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json | 17 | ||||
-rw-r--r-- | aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml | 77 |
2 files changed, 94 insertions, 0 deletions
diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json b/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json new file mode 100644 index 00000000..5f8f4306 --- /dev/null +++ b/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json @@ -0,0 +1,17 @@ +{ + "rules": [ + { + "from": "software-version", + "to": "pnf", + "label": "org.onap.relationships.inventory.BelongsTo", + "direction": "OUT", + "multiplicity": "MANY2ONE", + "contains-other-v": "!${direction}", + "delete-other-v": "NONE", + "SVC-INFRA": "NONE", + "prevent-delete": "!${direction}", + "default": "true", + "description":"" + } + ] +} diff --git a/aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml b/aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml new file mode 100644 index 00000000..11563c56 --- /dev/null +++ b/aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + ============LICENSE_START======================================================= + org.onap.aai + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + Copyright (C) 2018 Huawei Technologies (Australia) Pty Ltd. All rights reserved. + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ============LICENSE_END========================================================= + --> + +<xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm" package-name="inventory.aai.onap.org.v14" xml-mapping-metadata-complete="true"> + <xml-schema element-form-default="QUALIFIED"> + <xml-ns namespace-uri="http://org.onap.aai.inventory/v14" /> + </xml-schema> + <java-types> + <java-type name="Pnf"> + <xml-root-element name="pnf" /> + <java-attributes> + <xml-element java-attribute="pnfIpv4Address" name="pnf-ipv4-address" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="This is the IP address (IPv4) for the PNF itself. This is the IPv4 address that the PNF iself can be accessed at." /> + </xml-properties> + </xml-element> + <xml-element java-attribute="pnfIpv6Address" name="pnf-ipv6-address" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="This is the IP address (IPv6) for the PNF itself. This is the IPv6 address that the PNF iself can be accessed at." /> + </xml-properties> + </xml-element> + <xml-element java-attribute="softwareVersions" name="software-versions" type="inventory.aai.onap.org.v14.SoftwareVersions" /> + </java-attributes> + </java-type> + <java-type name="SoftwareVersions"> + <xml-properties> + <xml-property name="description" value="Collection of software versions." /> + </xml-properties> + <xml-root-element name="software-versions" /> + <java-attributes> + <xml-element container-type="java.util.ArrayList" java-attribute="softwareVersion" name="software-version" type="inventory.aai.onap.org.v14.SoftwareVersion" /> + </java-attributes> + </java-type> + + <java-type name="SoftwareVersion"> + <xml-root-element name="software-version" /> + <java-attributes> + <xml-element java-attribute="softwareVersionId" name="software-version-id" required="true" type="java.lang.String" xml-key="true"> + <xml-properties> + <xml-property name="description" value="Identifier of the software version" /> + </xml-properties> + </xml-element> + <xml-element default-value="false" java-attribute="isActiveSwVer" name="is-active-sw-ver" required="true" type="java.lang.Boolean"> + <xml-properties> + <xml-property name="defaultValue" value="false"/> + <xml-property name="description" value="used to indicate whether or not this software-version is the active one (activeSw = true)" /> + </xml-properties> + </xml-element> + </java-attributes> + <xml-properties> + <xml-property name="description" value="Software Version" /> + <xml-property name="indexedProps" value="softwareVersionId,isActiveSwVer" /> + <xml-property name="dependentOn" value="pnf" /> + <xml-property name="container" value="pnf" /> + </xml-properties> + </java-type> + </java-types> +</xml-bindings> |