Use network-route to model 3GPP EP_Transport 02/112402/6
authorhyu2010 <henry.yu1@huawei.com>
Wed, 9 Sep 2020 17:28:37 +0000 (13:28 -0400)
committerhyu2010 <henry.yu1@huawei.com>
Wed, 9 Sep 2020 21:49:49 +0000 (17:49 -0400)
(1) Add logicalInterfaceId attribute to "network-route"
(2) Add cousin-edge rule between "service-instance" and "network-route"
   (one-to-many relation)
(3) Add cousin-edge rule between allotted-resource and logical-links
   (one-to-many relation). This is needed for the TN NSSI model

Issue-ID: AAI-2920

Signed-off-by: hyu2010 <henry.yu1@huawei.com>
Change-Id: If0efa747bdbcd4a4bc4d73fadde66fe721cbfcb8
Signed-off-by: hyu2010 <henry.yu1@huawei.com>
aai-schema/src/main/resources/onap/aai_schema/aai_schema_v21.xsd
aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json
aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml

index b571bb0..9a79e12 100644 (file)
@@ -11265,6 +11265,13 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
             </xs:appinfo>
           </xs:annotation>
         </xs:element>
+        <xs:element name="logical-interface-id" type="xs:string" minOccurs="0">
+          <xs:annotation>
+            <xs:appinfo>
+              <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Identity of a logical interface, e.g., VLAN ID.")</annox:annotate>
+            </xs:appinfo>
+          </xs:annotation>
+        </xs:element>
         <xs:element name="next-hop" type="xs:string" minOccurs="0">
           <xs:annotation>
             <xs:appinfo>
index e6001b0..6bf69bf 100644 (file)
                        "default": "true",
                        "description": ""
                },
+               {
+                       "from": "allotted-resource",
+                       "to": "logical-link",
+                       "label": "org.onap.relationships.inventory.ComposedOf",
+                       "direction": "OUT",
+                       "multiplicity": "ONE2MANY",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "${direction}",
+                       "prevent-delete": "NONE",
+                       "default": "true",
+                       "description": ""
+               },
                {
                        "from": "availability-zone",
                        "to": "complex",
                        "prevent-delete": "NONE",
                        "default": "false",
                        "description": ""
+               },
+               {
+                       "from": "service-instance",
+                       "to": "network-route",
+                       "label": "org.onap.relationships.inventory.ComposedOf",
+                       "direction": "OUT",
+                       "multiplicity": "ONE2MANY",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "${direction}",
+                       "prevent-delete": "NONE",
+                       "default": "true",
+                       "description": ""
                }
+
        ]
 }
index 44825f2..374482a 100644 (file)
                     <xml-properties>
                         <xml-property name="description" value="ip-address prefix length."/>
                     </xml-properties>
+                </xml-element>
+                               <xml-element java-attribute="logicalInterfaceId" name="logical-interface-id" type="java.lang.String">
+                    <xml-properties>
+                        <xml-property name="description" value="Identity of a logical interface, e.g., VLAN ID."/>
+                    </xml-properties>
                 </xml-element>
                                <xml-element java-attribute="nextHop" name="next-hop" type="java.lang.String">
                     <xml-properties>