Update shema for VFC 39/15039/5
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Mon, 25 Sep 2017 11:10:40 +0000 (16:40 +0530)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 11 Oct 2017 09:56:11 +0000 (15:26 +0530)
Update AAI schema for VFC changes.

Change-Id: I3adc80861ffe4690f493b770d3f902652b55bfd4
Issue-ID: VFC-181
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
aai-core/src/main/resources/dbedgerules/DbEdgeRules_v11.json
aai-schema/src/main/resources/oxm/aai_oxm_v11.xml

index 7bcb1ac..96af835 100644 (file)
                        "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE"
                },
+               {
+                       "from": "generic-vnf",
+                       "to": "esr-vnfm",
+                       "label": "uses",
+                       "direction": "OUT",
+                       "multiplicity": "Many2One",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "NONE",
+                       "SVC-INFRA": "NONE",
+                       "prevent-delete": "!${direction}"
+               },
                {
                        "from": "group-assignment",
                        "to": "tenant",
index 640ceed..fbb4eef 100644 (file)
                                                <xml-property name="description" value="This field will store the workload context assigned to the service-instance." />
                                        </xml-properties>
                                </xml-element>
+                               <xml-element java-attribute="createdAt" name="created-at" required="false" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="create time of Network Service." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="updatedAt" name="updated-at" required="false" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="last update of Network Service." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="description" name="description" required="false" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="short description for service-instance." />
+                                       </xml-properties>
+                               </xml-element>
+                               <!-- for storing the nsd_id create edge between services -->
                                <xml-element java-attribute="modelInvariantId" name="model-invariant-id" type="java.lang.String">
                                        <xml-properties>
                                                <xml-property name="description" value="the ASDC model id for this resource or service model." />
                                                <xml-property name="description" value="Unique id of VNF.  This is unique across the graph." />
                                        </xml-properties>
                                </xml-element>
+                               <xml-element java-attribute="vnfInstanceId" name="vnf-instance-id" required="false" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="vnf instance id." />
+                                       </xml-properties>
+                               </xml-element>
                                <xml-element java-attribute="vnfName" name="vnf-name" required="true" type="java.lang.String">
                                        <xml-properties>
                                                <xml-property name="description" value="Name of VNF." />
                                                <xml-property name="suggestibleOnSearch" value="true"/>
                                        </xml-properties>
                                </xml-element>
+                               <xml-element java-attribute="vnfPackageName" name="vnf-package-name" required="false" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value=""/>
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="vnfDiscriptorName" name="vnf-discriptor-name" required="false" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="vnf discriptor name"/>
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="jobId" name="job-id" required="false" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="job id corresponding to vnf"/>
+                                       </xml-properties>
+                               </xml-element>
                                <xml-element java-attribute="heatStackId" name="heat-stack-id" type="java.lang.String">
                                        <xml-properties>
                                                <xml-property name="description" value="Heat stack id corresponding to this instance, managed by MSO" />
                                                <xml-property name="description" value="units associated with vdisk, used for VNFs with no vservers/flavors, to be used only by uCPE" />
                                        </xml-properties>
                                </xml-element>
+                               <xml-element java-attribute="nshd" name="nshd" type="java.lang.Long">
+                                       <xml-properties>
+                                               <xml-property name="description" value="number of associated SHD in vnf." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="nvm" name="nvm" type="java.lang.Long">
+                                       <xml-properties>
+                                               <xml-property name="description" value="number of vms in vnf." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="nnet" name="nnet" type="java.lang.Long">
+                                       <xml-properties>
+                                               <xml-property name="description" value="number of network in vnf." />
+                                       </xml-properties>
+                               </xml-element>
                                <xml-element default-value="false" required="true" java-attribute="inMaint" name="in-maint" type="java.lang.Boolean">
                                        <xml-properties>
                                                <xml-property name="defaultValue" value="false"/>