Updated AAI schema and DBEdge rules for the 58/116058/1
authorMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Thu, 3 Dec 2020 05:51:33 +0000 (05:51 +0000)
committerMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Thu, 3 Dec 2020 05:51:39 +0000 (05:51 +0000)
MDONS use Case

Issue-ID: AAI-3225
Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Change-Id: I207ee99270a1bf6d346e9e4fd4431bb79fda3be3

aai-schema/src/main/resources/onap/dbedgerules/v19/DbEdgeRules_ccvpn_v19.json
aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_ccvpn_v20.json
aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json
aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_ccvpn_v21.json
aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json
aai-schema/src/main/resources/onap/oxm/v19/aai_oxm_v19.xml
aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml
aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml

index 396d970..9f191f7 100644 (file)
                 "prevent-delete": "NONE",
                 "default": "true",
                 "description":"For MDONS usecase"
-        },
-        {
-                "from": "label-restriction",
-                "to": "bandwidth-attribute",
-                "label": "org.onap.relationships.inventory.BelongsTo",
-                "direction": "OUT",
-                "multiplicity": "MANY2ONE",
-                "contains-other-v": "!${direction}",
-                "delete-other-v": "!${direction}",
-                "prevent-delete": "NONE",
-                "default": "true",
-                "description":"For MDONS usecase"
         }
   ]
 }
index 883c6ef..2f295e7 100644 (file)
                 "prevent-delete": "NONE",
                 "default": "true",
                 "description":"For MDONS usecase"
-        },
-        {
-                "from": "label-restriction",
-                "to": "bandwidth-attribute",
-                "label": "org.onap.relationships.inventory.BelongsTo",
-                "direction": "OUT",
-                "multiplicity": "MANY2ONE",
-                "contains-other-v": "!${direction}",
-                "delete-other-v": "!${direction}",
-                "prevent-delete": "NONE",
-                "default": "true",
-                "description":"For MDONS usecase"
         }
   ]
 }
index 977af56..a2065da 100644 (file)
                        "to": "logical-link",
                        "label": "tosca.relationships.network.LinksTo",
                        "direction": "OUT",
-                       "multiplicity": "MANY2ONE",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
+                       "delete-other-v": "${direction}",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description":""
index f1dfae3..0c7e77c 100644 (file)
                 "prevent-delete": "NONE",
                 "default": "true",
                 "description":"For MDONS usecase"
-        },
-        {
-                "from": "label-restriction",
-                "to": "bandwidth-attribute",
-                "label": "org.onap.relationships.inventory.BelongsTo",
-                "direction": "OUT",
-                "multiplicity": "MANY2ONE",
-                "contains-other-v": "!${direction}",
-                "delete-other-v": "!${direction}",
-                "prevent-delete": "NONE",
-                "default": "true",
-                "description":"For MDONS usecase"
         }
   ]
 }
index 2c2c0fc..1e748e2 100644 (file)
                        "to": "logical-link",
                        "label": "tosca.relationships.network.LinksTo",
                        "direction": "OUT",
-                       "multiplicity": "MANY2ONE",
+                       "multiplicity": "MANY2MANY",
                        "contains-other-v": "NONE",
-                       "delete-other-v": "NONE",
+                       "delete-other-v": "${direction}",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description": ""
index fc83e81..60172da 100644 (file)
             </xml-properties>
         </java-type>
 
-       <java-type name="OTNLabelRestrictions">
+       <!--java-type name="OTNLabelRestrictions">
             <xml-properties>
                 <xml-property name="description" value="Collection of Label Restriction. Added for ENNI in MDONS use case."/>
             </xml-properties>
                 <xml-property name="dependentOn" value="bandwidth-attribute"/>
                 <xml-property name="requiredProps" value="lr-id"/>
             </xml-properties>
-        </java-type>
+        </java-type-->
        
         <java-type name="LagInterfaces">
             <xml-properties>
index 41a7e72..0304670 100644 (file)
                 </xml-element>
                 <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v20.RelationshipList"/>
                 <xml-element java-attribute="availableBandwidthMap" name="available-bandwidth-map" type="inventory.aai.onap.org.v20.AvailableBandwidthMap"/>
-                <xml-element java-attribute="OTNLabelRestrictions" name="otn-label-restrictions" type="inventory.aai.onap.org.v20.OTNLabelRestrictions"/>
+                <!--xml-element java-attribute="OTNLabelRestrictions" name="otn-label-restrictions" type="inventory.aai.onap.org.v20.OTNLabelRestrictions"/-->
             </java-attributes>
             <xml-properties>
                 <xml-property name="description" value="Instance of a bandwidth-attribute"/>
             </xml-properties>
         </java-type>
 
-       <java-type name="OTNLabelRestrictions">
+       <!--java-type name="OTNLabelRestrictions">
             <xml-properties>
                 <xml-property name="description" value="Collection of Label Restriction. Added for ENNI in MDONS use case."/>
             </xml-properties>
                 <xml-property name="dependentOn" value="bandwidth-attribute"/>
                 <xml-property name="requiredProps" value="lr-id"/>
             </xml-properties>
-        </java-type>
+        </java-type-->
 
         <java-type name="LagInterfaces">
             <xml-properties>
index 716b98b..aff32ee 100644 (file)
                 </xml-element>
                 <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v21.RelationshipList"/>
                 <xml-element java-attribute="availableBandwidthMap" name="available-bandwidth-map" type="inventory.aai.onap.org.v21.AvailableBandwidthMap"/>
-                <xml-element java-attribute="OTNLabelRestrictions" name="otn-label-restrictions" type="inventory.aai.onap.org.v21.OTNLabelRestrictions"/>
+                <!--xml-element java-attribute="OTNLabelRestrictions" name="otn-label-restrictions" type="inventory.aai.onap.org.v21.OTNLabelRestrictions"/-->
             </java-attributes>
             <xml-properties>
                 <xml-property name="description" value="Instance of a bandwidth-attribute"/>
             </xml-properties>
         </java-type>
 
-       <java-type name="OTNLabelRestrictions">
+       <!--java-type name="OTNLabelRestrictions">
             <xml-properties>
                 <xml-property name="description" value="Collection of Label Restriction. Added for ENNI in MDONS use case."/>
             </xml-properties>
                 <xml-property name="dependentOn" value="bandwidth-attribute"/>
                 <xml-property name="requiredProps" value="lr-id"/>
             </xml-properties>
-        </java-type>
+        </java-type-->
 
         <java-type name="Vrfs">
             <xml-root-element name="vrfs"/>