Hi,
I had added the following changes in the *aai_oxm_v11.xml* file (master branch)
and followed the steps as per the wiki (
https://wiki.onap.org/display/DW/AAI+Tutorial-Making+and+Testing+a+Schema+Change+-+Dublin
) page.
<java-type name="CloudRegion">
<xml-root-element name="cloud-region"/>
<java-attributes>
<xml-element java-attribute="cloudOwner" name="cloud-owner"
required="true" type="java.lang.String" xml-key="true">
<xml-properties>
<xml-property name="description" value="Identifies the
vendor and cloud name. First part of composite key should be formatted as
vendor-cloudname"/>
</xml-properties>
</xml-element>
<xml-element java-attribute="cloudRegionId"
name="cloud-region-id" required="true" type="java.lang.String" xml-key="true">
<xml-properties>
<xml-property name="description" value="Identifier used
by the vendor for the region. Second part of composite key"/>
</xml-properties>
</xml-element>
<xml-element java-attribute="cloudType" name="cloud-type"
type="java.lang.String">
<xml-properties>
<xml-property name="description" value="Type of the
cloud (e.g., openstack)"/>
</xml-properties>
</xml-element>
<xml-element java-attribute="ownerDefinedType"
name="owner-defined-type" type="java.lang.String">
<xml-properties>
<xml-property name="description" value="Cloud-owner
defined type indicator (e.g., dcp, lcp)"/>
</xml-properties>
</xml-element>
<xml-element java-attribute="cloudRegionVersion"
name="cloud-region-version" type="java.lang.String">
<xml-properties>
<xml-property name="description" value="Software
version employed at the site. NOTE - THIS FIELD IS NOT KEPT UP TO DATE."/>
</xml-properties>
</xml-element>
<xml-element java-attribute="identityUrl" name="identity-url"
type="java.lang.String">
<xml-properties>
<xml-property name="description" value="URL of the
keystone identity service"/>
</xml-properties>
</xml-element>
<xml-element java-attribute="cloudZone" name="cloud-zone"
type="java.lang.String">
<xml-properties>
<xml-property name="description" value="Zone where the
cloud is homed. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED."/>
</xml-properties>
</xml-element>
<xml-element java-attribute="complexName" name="complex-name"
type="java.lang.String">
<xml-properties>
<xml-property name="description" value="complex name
for cloud-region instance. NOTE - THIS FIELD IS NOT CORRECTLY POPULATED."/>
</xml-properties>
</xml-element>
*<xml-element java-attribute="newAttributeForDemo"
name="new-attribute-for-demo" required="true" type="java.lang.String">*
* <xml-properties>*
*<xml-property name="description" value="Example new attribute for cloud-region
instance. " />*
* </xml-properties>*
*</xml-element>*
* <xml-element java-attribute="numberAttributeForDemo"
name="number-attribute-for-demo" required="true" type="java.lang.Integer">*
* <xml-properties>*
* <xml-property name="description" value="Example number attribute for
cloud-region instance. " />*
* </xml-properties>*
*</xml-element>*
<xml-element java-attribute="sriovAutomation"
name="sriov-automation" type="java.lang.String">
<xml-properties>
<xml-property name="description" value="Whether the
cloud region supports (true) or does not support (false) SR-IOV automation."/>
</xml-properties>
</xml-element>
<xml-element java-attribute="cloudExtraInfo"
name="cloud-extra-info" type="java.lang.String">
<xml-properties>
<xml-property name="description" value="ESR inputs
extra information about the VIM or Cloud which will be decoded by MultiVIM."/>
</xml-properties>
</xml-element>
<xml-element java-attribute="cloudEpaCaps"
name="cloud-epa-caps" type="java.lang.String">
<xml-properties>
<xml-property name="description" value="MultiVIM will
discover and expose EPA 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."/>
</xml-properties>
</xml-element>
<xml-element java-attribute="volumeGroups" name="volume-groups"
type="inventory.aai.onap.org.v11.VolumeGroups"/>
<xml-element java-attribute="tenants" name="tenants"
type="inventory.aai.onap.org.v11.Tenants"/>
<xml-element java-attribute="flavors" name="flavors"
type="inventory.aai.onap.org.v11.Flavors"/>
<xml-element java-attribute="groupAssignments"
name="group-assignments" type="inventory.aai.onap.org.v11.GroupAssignments"/>
<xml-element java-attribute="snapshots" name="snapshots"
type="inventory.aai.onap.org.v11.Snapshots"/>
<xml-element java-attribute="images" name="images"
type="inventory.aai.onap.org.v11.Images"/>
<xml-element java-attribute="dvsSwitches" name="dvs-switches"
type="inventory.aai.onap.org.v11.DvsSwitches"/>
<xml-element java-attribute="oamNetworks" name="oam-networks"
type="inventory.aai.onap.org.v11.OamNetworks"/>
<xml-element java-attribute="availabilityZones"
name="availability-zones" type="inventory.aai.onap.org.v11.AvailabilityZones"/>
<xml-element java-attribute="relationshipList"
name="relationship-list" type="inventory.aai.onap.org.v11.RelationshipList"/>
<xml-element java-attribute="esrSystemInfoList" name="esr-system-info-list"
type="inventory.aai.onap.org.v11.EsrSystemInfoList"/>
<xml-element container-type="java.util.ArrayList"
java-attribute="vipIpv4AddressList" name="vip-ipv4-address-list"
type="inventory.aai.onap.org.v11.VipIpv4AddressList"/>
<xml-element container-type="java.util.ArrayList"
java-attribute="vipIpv6AddressList" name="vip-ipv6-address-list"
type="inventory.aai.onap.org.v11.VipIpv6AddressList"/>
</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"/>
<xml-property name="nameProps" value="owner-defined-type"/>
<xml-property name="container" value="cloud-regions"/>
<xml-property name="namespace" value="cloud-infrastructure"/>
<xml-property name="uriTemplate"
value="/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}"/>
<xml-property name="requiredProps"
value="cloud-owner,cloud-region-id"/>
</xml-properties>
</java-type>
Regards,
Udhay
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15948): https://lists.onap.org/g/onap-discuss/message/15948
Mute This Topic: https://lists.onap.org/mt/30296097/21656
Mute #aai: https://lists.onap.org/mk?hashtag=aai&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-