diff options
author | Dileep Ranganathan <dileep.ranganathan@intel.com> | 2018-01-30 07:18:31 -0800 |
---|---|---|
committer | Dileep Ranganathan <dileep.ranganathan@intel.com> | 2018-03-08 05:35:20 -0800 |
commit | 8d980b759d7e878530c6ebf404fe89e99ed0aab4 (patch) | |
tree | ca4ecc3d004974b27ab3bdb2b7f50864829ff13d | |
parent | 95c5189f3b8aa708feaaa78999342220321fad00 (diff) |
Hardware Platform Awareness (HPA) - Schema
Expanding the blob of string to a more generic representation
Added new nodes for HPA enablement
Change-Id: I3f861934856efbe7d8b08857dadf3c3e9a4baf96
Issue-ID: AAI-742
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
4 files changed, 225 insertions, 3 deletions
diff --git a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json index 4b33f0f2..ed34d44e 100644 --- a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json +++ b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v12.json @@ -282,6 +282,32 @@ "description":"" }, { + "from": "hpa-capability", + "to": "flavor", + "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":"" + }, + { + "from": "hpa-capability", + "to": "cloud-region", + "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":"" + }, + { "from": "group-assignment", "to": "cloud-region", "label": "org.onap.relationships.inventory.BelongsTo", diff --git a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json index 4b33f0f2..ed34d44e 100644 --- a/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json +++ b/aai-core/src/main/resources/dbedgerules/DbEdgeRules_v13.json @@ -282,6 +282,32 @@ "description":"" }, { + "from": "hpa-capability", + "to": "flavor", + "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":"" + }, + { + "from": "hpa-capability", + "to": "cloud-region", + "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":"" + }, + { "from": "group-assignment", "to": "cloud-region", "label": "org.onap.relationships.inventory.BelongsTo", diff --git a/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml b/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml index 6b21a1da..196d00f0 100644 --- a/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml +++ b/aai-schema/src/main/resources/oxm/aai_oxm_v12.xml @@ -490,6 +490,81 @@ </xml-properties> </java-type> + <java-type name="HpaCapabilities"> + <xml-properties> + <xml-property name="description" value="Collection of HPA Capabilities"/> + </xml-properties> + <xml-root-element name="hpa-capabilities"/> + <java-attributes> + <xml-element container-type="java.util.ArrayList" java-attribute="hpaCapability" name="hpa-capability" type="inventory.aai.onap.org.v12.HpaCapability"/> + </java-attributes> + </java-type> + + <java-type name="HpaCapability"> + <xml-root-element name="hpa-capability"/> + <java-attributes> + <xml-element java-attribute="hpaCapabilityId" name="hpa-capability-id" required="true" type="java.lang.String" xml-key="true"> + <xml-properties> + <xml-property name="description" value="UUID to uniquely identify a HPA capability"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="hpaFeature" name="hpa-feature" required="true" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Name of the HPACapability"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="version" name="hpa-version" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="HPA schema version"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="hardwareArchitecture" name="hpa-hw-arch" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Hardware architecture"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete."/> + </xml-properties> + </xml-element> + <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v12.RelationshipList"/> + <xml-element container-type="java.util.ArrayList" java-attribute="hpaFeatureAttribute" name="hpa-feature-attribute" type="inventory.aai.onap.org.v12.HpaFeatureAttribute"/> + </java-attributes> + <xml-properties> + <xml-property name="description" value="Represents a HPA capability"/> + <xml-property name="indexedProps" value="hpa-feature,hpa-hw-arch,hpa-capability-id"/> + <xml-property name="dependentOn" value="flavor"/> + <xml-property name="container" value="hpa-capabilities"/> + </xml-properties> + </java-type> + + <java-type name="HpaFeatureAttribute"> + <xml-root-element name="hpa-feature-attribute"/> + <java-attributes> + <xml-element java-attribute="hpaAttributeKey" name="hpa-attr-key" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="name of the specific HPA attribute"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="hpaAttributeValue" name="hpa-attr-value" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="JSON string specifying the value, unit and type of the specific HPA attribute"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete."/> + </xml-properties> + </xml-element> + <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v12.RelationshipList"/> + </java-attributes> + <xml-properties> + <xml-property name="description" value="HPA Capability Feature attributes"/> + <xml-property name="container" value="hpa-capability"/> + </xml-properties> + </java-type> + <java-type name="CloudInfrastructure"> <xml-properties> <xml-property name="description" value="Namespace for cloud infrastructure." /> @@ -591,6 +666,11 @@ <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v12.RelationshipList" /> <xml-element container-type="java.util.ArrayList" java-attribute="vipIpv4AddressList" name="vip-ipv4-address-list" type="inventory.aai.onap.org.v12.VipIpv4AddressList" /> <xml-element container-type="java.util.ArrayList" java-attribute="vipIpv6AddressList" name="vip-ipv6-address-list" type="inventory.aai.onap.org.v12.VipIpv6AddressList" /> + <xml-element java-attribute="hpaCapabilities" name="hpa-capabilities" type="inventory.aai.onap.org.v12.HpaCapabilities"> + <xml-properties> + <xml-property name="description" value="List of cloud-region specific HPA Capabilities"/> + </xml-properties> + </xml-element> </java-attributes> <xml-properties> <xml-property name="description" value="cloud-region designates an installation of a cloud cluster or region or instantiation." /> @@ -1408,7 +1488,7 @@ </xml-element> <xml-element java-attribute="flavorName" name="flavor-name" required="true" type="java.lang.String"> <xml-properties> - <xml-property name="description" value="Flavor name" /> + <xml-property name="description" value="Cloud region Flavor name" /> </xml-properties> </xml-element> <xml-element java-attribute="flavorVcpus" name="flavor-vcpus" type="java.lang.Integer"> @@ -1451,6 +1531,11 @@ <xml-property name="description" value="Boolean as to whether this flavor is no longer enabled" /> </xml-properties> </xml-element> + <xml-element java-attribute="hpaCapabilities" name="hpa-capabilities" type="inventory.aai.onap.org.v12.HpaCapabilities"> + <xml-properties> + <xml-property name="description" value="List of flavor specific HPA Capabilities"/> + </xml-properties> + </xml-element> <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String"> <xml-properties> <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete." /> diff --git a/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml b/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml index bd6676d2..9c4272b1 100644 --- a/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml +++ b/aai-schema/src/main/resources/oxm/aai_oxm_v13.xml @@ -490,6 +490,81 @@ </xml-properties> </java-type> + <java-type name="HpaCapabilities"> + <xml-properties> + <xml-property name="description" value="Collection of HPA Capabilities"/> + </xml-properties> + <xml-root-element name="hpa-capabilities"/> + <java-attributes> + <xml-element container-type="java.util.ArrayList" java-attribute="hpaCapability" name="hpa-capability" type="inventory.aai.onap.org.v13.HpaCapability"/> + </java-attributes> + </java-type> + + <java-type name="HpaCapability"> + <xml-root-element name="hpa-capability"/> + <java-attributes> + <xml-element java-attribute="hpaCapabilityId" name="hpa-capability-id" required="true" type="java.lang.String" xml-key="true"> + <xml-properties> + <xml-property name="description" value="UUID to uniquely identify a HPA capability"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="hpaFeature" name="hpa-feature" required="true" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Name of the HPACapability"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="version" name="hpa-version" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="HPA schema version"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="hardwareArchitecture" name="hpa-hw-arch" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Hardware architecture"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete."/> + </xml-properties> + </xml-element> + <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v13.RelationshipList"/> + <xml-element container-type="java.util.ArrayList" java-attribute="hpaFeatureAttribute" name="hpa-feature-attribute" type="inventory.aai.onap.org.v13.HpaFeatureAttribute"/> + </java-attributes> + <xml-properties> + <xml-property name="description" value="Represents a HPA capability"/> + <xml-property name="indexedProps" value="hpa-feature,hpa-hw-arch,hpa-capability-id"/> + <xml-property name="dependentOn" value="flavor"/> + <xml-property name="container" value="hpa-capabilities"/> + </xml-properties> + </java-type> + + <java-type name="HpaFeatureAttribute"> + <xml-root-element name="hpa-feature-attribute"/> + <java-attributes> + <xml-element java-attribute="hpaAttributeKey" name="hpa-attr-key" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="name of the specific HPA attribute"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="hpaAttributeValue" name="hpa-attr-value" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="JSON string specifying the value, unit and type of the specific HPA attribute"/> + </xml-properties> + </xml-element> + <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete."/> + </xml-properties> + </xml-element> + <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v13.RelationshipList"/> + </java-attributes> + <xml-properties> + <xml-property name="description" value="HPA Capability Feature attributes"/> + <xml-property name="container" value="hpa-capability"/> + </xml-properties> + </java-type> + <java-type name="CloudInfrastructure"> <xml-properties> <xml-property name="description" value="Namespace for cloud infrastructure." /> @@ -591,7 +666,12 @@ <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v13.RelationshipList" /> <xml-element container-type="java.util.ArrayList" java-attribute="vipIpv4AddressList" name="vip-ipv4-address-list" type="inventory.aai.onap.org.v13.VipIpv4AddressList" /> <xml-element container-type="java.util.ArrayList" java-attribute="vipIpv6AddressList" name="vip-ipv6-address-list" type="inventory.aai.onap.org.v13.VipIpv6AddressList" /> - </java-attributes> + <xml-element java-attribute="hpaCapabilities" name="hpa-capabilities" type="inventory.aai.onap.org.v13.HpaCapabilities"> + <xml-properties> + <xml-property name="description" value="List of cloud-region specific HPA Capabilities"/> + </xml-properties> + </xml-element> + </java-attributes> <xml-properties> <xml-property name="description" value="cloud-region designates an installation of a cloud cluster or region or instantiation." /> <xml-property name="indexedProps" value="cloud-owner,cloud-region-id,cloud-type,owner-defined-type" /> @@ -1408,7 +1488,7 @@ </xml-element> <xml-element java-attribute="flavorName" name="flavor-name" required="true" type="java.lang.String"> <xml-properties> - <xml-property name="description" value="Flavor name" /> + <xml-property name="description" value="Cloud Region Flavor name" /> </xml-properties> </xml-element> <xml-element java-attribute="flavorVcpus" name="flavor-vcpus" type="java.lang.Integer"> @@ -1451,6 +1531,11 @@ <xml-property name="description" value="Boolean as to whether this flavor is no longer enabled" /> </xml-properties> </xml-element> + <xml-element java-attribute="hpaCapabilities" name="hpa-capabilities" type="inventory.aai.onap.org.v13.HpaCapabilities"> + <xml-properties> + <xml-property name="description" value="List of flavor specific HPA Capabilities"/> + </xml-properties> + </xml-element> <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String"> <xml-properties> <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete." /> |