AAI-1453 update p-interface schema for CCVPN 53/60453/4
authorKeong Lim <keong.lim@huawei.com>
Fri, 10 Aug 2018 07:26:34 +0000 (17:26 +1000)
committerKeong Lim <keong.lim@huawei.com>
Fri, 17 Aug 2018 05:28:32 +0000 (15:28 +1000)
Issue-ID: AAI-1453
Add properties network-ref, transparent, operational-status
Make these network-ref and operational-status indexed

Change-Id: I047ecda31e08573adb1ef32ecd82b8e80e70d37a
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/dbedgerules/v14/DbEdgeRules_v14.json
aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml

index 2019a6a..8ce75a0 100644 (file)
@@ -2353,7 +2353,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="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces")</annox:annotate>
+          <annox:annotate target="class">@org.onap.aai.annotations.Metadata(description="Physical interface (e.g., nic)",indexedProps="interface-name,prov-status,networkRef,operational-status",nameProps="prov-status",dependentOn="vpls-pe,pserver,pnf",container="p-interfaces")</annox:annotate>
         </xs:appinfo>
       </xs:annotation>
       <xs:sequence>
@@ -2448,6 +2448,27 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
             </xs:appinfo>
           </xs:annotation>
         </xs:element>
+        <xs:element name="network-ref" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Store the network-ref of this p-interface. Derived from ietf-restconf-notification that identifies a termination-point.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
+        <xs:element name="transparent" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Store the transparent value of this p-interface.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
+        <xs:element name="operational-status" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="oper Status of this p-interface.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
         <xs:element ref="tns:relationship-list" minOccurs="0"/>
         <xs:element ref="tns:sriov-pfs" minOccurs="0"/>
         <xs:element ref="tns:l-interfaces" minOccurs="0"/>
index b407c87..2e65669 100644 (file)
                        "default": "true",
                        "description":""
                }
-               
+       
        ]
 }
index 111946f..2236ad2 100644 (file)
                                                <xml-property name="description" value="inventory status" />
                                        </xml-properties>
                                </xml-element>
+                               <xml-element java-attribute="networkRef" name="network-ref" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the network-ref of this p-interface. Derived from ietf-restconf-notification that identifies a termination-point." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="transparent" name="transparent" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the transparent value of this p-interface." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="operationalStatus" name="operational-status" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="oper Status of this p-interface." />
+                                       </xml-properties>
+                               </xml-element>
                                <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v14.RelationshipList" />
                                <xml-element java-attribute="sriovPfs" name="sriov-pfs" type="inventory.aai.onap.org.v14.SriovPfs" />
                                <xml-element java-attribute="lInterfaces" name="l-interfaces" type="inventory.aai.onap.org.v14.LInterfaces" />
                        </java-attributes>
                        <xml-properties>
                                <xml-property name="description" value="Physical interface (e.g., nic)" />
-                               <xml-property name="indexedProps" value="interface-name,prov-status" />
+                               <xml-property name="indexedProps" value="interface-name,prov-status,networkRef,operational-status" />
                                <xml-property name="nameProps" value="prov-status" />
                                <xml-property name="dependentOn" value="vpls-pe,pserver,pnf" />
                                <xml-property name="container" value="p-interfaces" />