sotn nni integration test issue fix 84/106184/4
authorRahul_cool <rahul.tamrkar@huawei.com>
Fri, 17 Apr 2020 12:17:22 +0000 (17:47 +0530)
committerJames Forsyth <jf2512@att.com>
Fri, 17 Apr 2020 18:03:45 +0000 (18:03 +0000)
1. te-link-attribute resource  unable to query issue fix
2.logical-link relationship with  te-link-attribute update
3.label-restriction relationship with  te-link-attribute update
4.interlayer-attachment relationship with p-interface update

Issue-ID: AAI-2593
Signed-off-by: Rahul_cool <rahul.tamrkar@huawei.com>
Change-Id: I227a8af5ebbe2897d82f56fab0d8acef59fda9b4

aai-schema/src/main/resources/onap/aai_schema/aai_schema_v19.xsd
aai-schema/src/main/resources/onap/dbedgerules/v19/DbEdgeRules_ccvpn_v19.json
aai-schema/src/main/resources/onap/oxm/v19/aai_oxm_v19.xml

index b07c1e1..de0859b 100644 (file)
@@ -10582,7 +10582,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 an te-link-attribute",indexedProps="id,labelStart,labelEnd,rangeBitmap,operational-status,model-invariant-id,model-version-id",searchable="id",uniqueProps="id",container="label-restrictions",namespace="network",requiredProps="id",uriTemplate="/network/label-restrictions/label-restriction/{id}")</annox:annotate>
+          <annox:annotate target="class">@org.onap.aai.annotations.Metadata(description="Instance of an label restriction",indexedProps="id,label-start,label-end,range-bitmap,operational-status,model-invariant-id,model-version-id",searchable="id",uniqueProps="id",container="label-restrictions",namespace="network",requiredProps="id",uriTemplate="/network/label-restrictions/label-restriction/{id}")</annox:annotate>
         </xs:appinfo>
       </xs:annotation>
       <xs:sequence>
@@ -10798,7 +10798,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 an te-link-attribute",indexedProps="id,linkProtectionType,accessType,operational-status,model-invariant-id,model-version-id",searchable="id",uniqueProps="id",container="te-link-attributes",namespace="network",requiredProps="id",uriTemplate="/network/te-link-attributes/te-link-attribute/{id}")</annox:annotate>
+          <annox:annotate target="class">@org.onap.aai.annotations.Metadata(description="Instance of an te-link-attribute",indexedProps="id,link-protection-type,access-type,operational-status,model-invariant-id,model-version-id",searchable="id",uniqueProps="id",container="te-link-attributes",namespace="network",requiredProps="id",uriTemplate="/network/te-link-attributes/te-link-attribute/{id}")</annox:annotate>
         </xs:appinfo>
       </xs:annotation>
       <xs:sequence>
@@ -10809,13 +10809,6 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
             </xs:appinfo>
           </xs:annotation>
         </xs:element>
-        <xs:element name="is-abstract" type="xs:boolean" minOccurs="0">
-          <xs:annotation>
-            <xs:appinfo>
-              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Indicate wheather link is abstract or native")</annox:annotate>
-            </xs:appinfo>
-          </xs:annotation>
-        </xs:element>
         <xs:element name="link-protection-type" type="xs:string" minOccurs="0">
           <xs:annotation>
             <xs:appinfo>
@@ -10851,6 +10844,13 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
             </xs:appinfo>
           </xs:annotation>
         </xs:element>
+        <xs:element name="is-abstract" type="xs:boolean" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Indicate wheather link is abstract or native")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
         <xs:element name="selflink" type="xs:string" minOccurs="0">
           <xs:annotation>
             <xs:appinfo>
index 5856f20..396d970 100644 (file)
                "default": "true",
                "description":"For CCVPN Usecase"
        },
+        {
+               "from": "connectivity",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
+        {
+               "from": "uni",
+               "to": "generic-vnf",
+               "label": "org.onap.relationships.inventory.PartOf",
+               "direction": "OUT",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "NONE",
+               "prevent-delete": "NONE",
+               "default": "true",
+               "description":"For CCVPN Usecase"
+       },
        {
                "from": "site-resource",
                "to": "generic-vnf",
                "to": "pnf",
                "label": "tosca.relationships.network.BindsTo",
                "direction": "OUT",
-               "multiplicity": "MANY2ONE",
-               "contains-other-v": "!${direction}",
-               "delete-other-v": "NONE",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
                "prevent-delete": "NONE",
                "default": "true",
-               "description":""
+               "description":"For CCVPN Usecase"
        },
        {
                "from": "p-interface",
                "to": "tunnel-termination-point",
                "label": "tosca.relationships.network.BindsTo",
                "direction": "OUT",
-               "multiplicity": "MANY2ONE",
-               "contains-other-v": "${direction}",
-               "delete-other-v": "NONE",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
                "prevent-delete": "NONE",
                "default": "true",
-               "description":""
+               "description":"For CCVPN Usecase"
        },
         {
                "from": "p-interface",
                "to": "interlayer-attachment",
-               "label": "tosca.relationships.network.BindsTo",
+               "label": "tosca.relationships.network.LinksTo",
                "direction": "OUT",
-               "multiplicity": "MANY2ONE",
-               "contains-other-v": "${direction}",
-               "delete-other-v": "NONE",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
                "prevent-delete": "NONE",
                "default": "true",
-               "description":""
+               "description":"For CCVPN Usecase"
+
        },
         {
                "from": "tunnel-termination-point",
                "to": "interlayer-attachment",
-               "label": "tosca.relationships.network.BindsTo",
+               "label": "tosca.relationships.network.LinksTo",
                "direction": "OUT",
-               "multiplicity": "MANY2ONE",
-               "contains-other-v": "${direction}",
-               "delete-other-v": "NONE",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
                "prevent-delete": "NONE",
                "default": "true",
-               "description":""
+               "description":"For CCVPN Usecase"
+
        },
        {
-               "from": "p-interface",
-               "to": "uni",
-               "label": "tosca.relationships.network.BindsTo",
+               "from": "uni",
+               "to": "p-interface",
+               "label": "org.onap.relationships.inventory.PartOf",
                "direction": "OUT",
-               "multiplicity": "MANY2ONE",
-               "contains-other-v": "${direction}",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
                "delete-other-v": "NONE",
                "prevent-delete": "NONE",
                "default": "true",
-               "description":""
+               "description":"For CCVPN Usecase"
        },
         {
                "from": "logical-link",
                "to": "te-link-attribute",
-               "label": "tosca.relationships.network.BindsTo",
+               "label": "tosca.relationships.network.LinksTo",
                "direction": "OUT",
-               "multiplicity": "ONE2ONE",
-               "contains-other-v": "${direction}",
-               "delete-other-v": "NONE",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
                "prevent-delete": "NONE",
                "default": "true",
-               "description":""
+               "description":"For CCVPN Usecase"
+
        },
         {
                "from": "label-restriction",
-               "to": "te-link-attributes",
-               "label": "tosca.relationships.network.BindsTo",
+               "to": "te-link-attribute",
+               "label": "tosca.relationships.network.LinksTo",
                "direction": "OUT",
-               "multiplicity": "MANY2ONE",
-               "contains-other-v": "${direction}",
-               "delete-other-v": "NONE",
+               "multiplicity": "MANY2MANY",
+               "contains-other-v": "NONE",
+               "delete-other-v": "!${direction}",
                "prevent-delete": "NONE",
                "default": "true",
-               "description":""
+               "description":"For CCVPN Usecase"
+
        },
         {
                 "from": "bandwidth-attribute",
index e0ca8f9..613264c 100644 (file)
                         <xml-property name="description" value="Id that identifies the TE link attribute"/>
                     </xml-properties>
                 </xml-element>
-                <xml-element java-attribute="isAbstract" name="is-abstract" type="java.lang.Boolean">
-                    <xml-properties>
-                        <xml-property name="description" value="Indicate wheather link is abstract or native"/>
-                    </xml-properties>
-                </xml-element>
                 <xml-element java-attribute="linkProtectionType" name="link-protection-type" type="java.lang.String">
                     <xml-properties>
                         <xml-property name="description" value="Indicate desired protection type of the link e.g, unprotected, shared or 1+1"/>
                         <xml-property name="description" value="The value of available bandwidth."/>
                     </xml-properties>
                 </xml-element>
+                <xml-element java-attribute="isAbstract" name="is-abstract" type="java.lang.Boolean">
+                    <xml-properties>
+                        <xml-property name="description" value="Indicate wheather link is abstract or native"/>
+                    </xml-properties>
+                </xml-element>
+
                 <xml-element java-attribute="selflink" name="selflink" type="java.lang.String">
                     <xml-properties>
                         <xml-property name="description" value="Store the link to get more information for this object."/>
             </java-attributes>
             <xml-properties>
                 <xml-property name="description" value="Instance of an te-link-attribute"/>
-                <xml-property name="indexedProps" value="id,linkProtectionType,accessType,operational-status,model-invariant-id,model-version-id"/>
+                <xml-property name="indexedProps" value="id,link-protection-type,access-type,operational-status,model-invariant-id,model-version-id"/>
                 <xml-property name="searchable" value="id"/>
                 <xml-property name="uniqueProps" value="id"/>
                 <xml-property name="container" value="te-link-attributes"/>
                 <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v19.RelationshipList"/>
             </java-attributes>
             <xml-properties>
-                <xml-property name="description" value="Instance of an te-link-attribute"/>
-                <xml-property name="indexedProps" value="id,labelStart,labelEnd,rangeBitmap,operational-status,model-invariant-id,model-version-id"/>
+                <xml-property name="description" value="Instance of an label restriction"/>
+                <xml-property name="indexedProps" value="id,label-start,label-end,range-bitmap,operational-status,model-invariant-id,model-version-id"/>
                 <xml-property name="searchable" value="id"/>
                 <xml-property name="uniqueProps" value="id"/>
                 <xml-property name="container" value="label-restrictions"/>