AAI-1639 Update wan-port-config to support IPv4/v6 07/67607/1
authorKeong Lim <keong.lim@huawei.com>
Wed, 19 Sep 2018 06:11:27 +0000 (16:11 +1000)
committerKeong Lim <keong.lim@huawei.com>
Wed, 19 Sep 2018 06:14:06 +0000 (16:14 +1000)
Issue-ID: AAI-1639
Update wan-port-config with ipv4-address, ipv6-address,
provider-ipv4-address and provider-ipv6-address.
For compatibility, keep ip-address and provider-ip-address as previously
published, but plan to deprecate and remove them.

Change-Id: Id96f90bb4034b8cb0c17f13a601ec881a67e9cf2
Signed-off-by: Keong Lim <keong.lim@huawei.com>
aai-schema/src/main/resources/onap/aai_schema/aai_schema_v14.xsd
aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml

index 2d817f9..2ffbf47 100644 (file)
@@ -9285,7 +9285,7 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
     <xs:complexType>
       <xs:annotation>
         <xs:appinfo>
-          <annox:annotate target="class">@org.onap.aai.annotations.Metadata(description="Instance of a wan-port-config",indexedProps="wan-port-config-id,wan-port-config-name,device-id,ip-address,port-type,port-number,device-port-id,wan-port-id,operational-status",nameProps="wan-port-config-name",searchable="wan-port-config-id",uniqueProps="wan-port-config-id",container="wan-port-configs",namespace="network")</annox:annotate>
+          <annox:annotate target="class">@org.onap.aai.annotations.Metadata(description="Instance of a wan-port-config",indexedProps="wan-port-config-id,wan-port-config-name,device-id,ip-address,ipv4-address,ipv6-address,port-type,port-number,device-port-id,wan-port-id,operational-status",nameProps="wan-port-config-name",searchable="wan-port-config-id",uniqueProps="wan-port-config-id",container="wan-port-configs",namespace="network")</annox:annotate>
         </xs:appinfo>
       </xs:annotation>
       <xs:sequence>
@@ -9324,6 +9324,20 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
             </xs:appinfo>
           </xs:annotation>
         </xs:element>
+        <xs:element name="ipv4-address" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Store the ipv4-address of this wan-port-config.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
+        <xs:element name="ipv6-address" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Store the ipv6-address of this wan-port-config.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
         <xs:element name="provider-ip-address" type="xs:string" minOccurs="0">
           <xs:annotation>
             <xs:appinfo>
@@ -9331,6 +9345,20 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
             </xs:appinfo>
           </xs:annotation>
         </xs:element>
+        <xs:element name="provider-ipv4-address" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Store the provider-ipv4-address of this wan-port-config.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
+        <xs:element name="provider-ipv6-address" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Store the provider-ipv6-address of this wan-port-config.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
         <xs:element name="input-bandwidth" type="xs:string" minOccurs="0">
           <xs:annotation>
             <xs:appinfo>
index f238794..2b698e2 100644 (file)
                                                <xml-property name="description" value="Store the ip-address of this wan-port-config." />
                                        </xml-properties>
                                </xml-element>
+                               <xml-element java-attribute="ipv4Address" name="ipv4-address" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the ipv4-address of this wan-port-config." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="ipv6Address" name="ipv6-address" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the ipv6-address of this wan-port-config." />
+                                       </xml-properties>
+                               </xml-element>
                                <xml-element java-attribute="providerIpAddress" name="provider-ip-address" type="java.lang.String">
                                        <xml-properties>
                                                <xml-property name="description" value="Store the provider-ip-address of this wan-port-config." />
                                        </xml-properties>
                                </xml-element>
+                               <xml-element java-attribute="providerIpv4Address" name="provider-ipv4-address" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the provider-ipv4-address of this wan-port-config." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="providerIpv6Address" name="provider-ipv6-address" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the provider-ipv6-address of this wan-port-config." />
+                                       </xml-properties>
+                               </xml-element>
                                <xml-element java-attribute="inputBandwidth" name="input-bandwidth" type="java.lang.String">
                                        <xml-properties>
                                                <xml-property name="description" value="Store the input-bandwidth of this wan-port-config." />
                        </java-attributes>
                        <xml-properties>
                                <xml-property name="description" value="Instance of a wan-port-config" />
-                               <xml-property name="indexedProps" value="wan-port-config-id,wan-port-config-name,device-id,ip-address,port-type,port-number,device-port-id,wan-port-id,operational-status" />
+                               <xml-property name="indexedProps" value="wan-port-config-id,wan-port-config-name,device-id,ip-address,ipv4-address,ipv6-address,port-type,port-number,device-port-id,wan-port-id,operational-status" />
                                <xml-property name="nameProps" value="wan-port-config-name" />
                                <xml-property name="searchable" value="wan-port-config-id" />
                                <xml-property name="uniqueProps" value="wan-port-config-id" />