Update pnp schema to right file
[aai/aai-common.git] / aai-schema / src / main / resources / onap / oxm / v14 / aai_oxm_v14.xml
index 2b698e2..e61ad59 100644 (file)
                         <xml-property name="privateEdge" value="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}"/>
                     </xml-properties>
                 </xml-element>
+                <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" />
                 <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v14.RelationshipList"/>
                 <xml-element java-attribute="pInterfaces" name="p-interfaces" type="inventory.aai.onap.org.v14.PInterfaces"/>
                 <xml-element java-attribute="lagInterfaces" name="lag-interfaces" type="inventory.aai.onap.org.v14.LagInterfaces"/>
                 <xml-property name="uriTemplate" value="/network/pnfs/pnf/{pnf-name}"/>
             </xml-properties>
         </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-type name="PhysicalLinks">
             <xml-properties>