Adapts PLA to new SOL006 NSD descriptors format
[osm/PLA.git] / osm_pla / test / nsd_unittest2.yaml
index be54166..355b451 100644 (file)
 # implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-nsd:nsd-catalog:
-    nsd:
-    -   constituent-vnfd:
-        -   member-vnf-index: one
-            vnfd-id-ref: cirros_vnfd_v2
-        -   member-vnf-index: two
-            vnfd-id-ref: cirros_vnfd_v2
-        -   member-vnf-index: three
-            vnfd-id-ref: cirros_vnfd_v2
-        description: Placement no constraints NSD
-        id: three_vnf_no_constrained_nsd
-        name: three_vnf_no_constrained_nsd
-        short-name: three_vnf_no_constrained_nsd
-        vendor: ArctosLabs
-        version: '1.0'
-        vld:
-        -   id: three_vnf_no_constrained_nsd_vld1
-            link-constraint:
-                - constraint-type: JITTER
-                  value: 30
-            mgmt-network: !!bool False
-            name: ns_no_constrained_nsd_vld1
-            short-name: ns_no_constrained_nsd_vld1
-            type: ELAN
-            vim-network-name: private
-            vnfd-connection-point-ref:
-            -   member-vnf-index-ref: one
-                vnfd-connection-point-ref: vnf-cp0
-                vnfd-id-ref: cirros_vnfd_v2
-            -   member-vnf-index-ref: two
-                vnfd-connection-point-ref: vnf-cp0
-                vnfd-id-ref: cirros_vnfd_v2
-        -   id: three_vnf_no_constrained_nsd_vld2
-            link-constraint:
-                - constraint-type: LATENCY
-                  value: 120
-            mgmt-network: !!bool False
-            name: ns_no_constrained_nsd_vld2
-            short-name: ns_no_constrained_nsd_vld2
-            type: ELAN
-            vim-network-name: private
-            vnfd-connection-point-ref:
-            -   member-vnf-index-ref: two
-                vnfd-connection-point-ref: vnf-cp0
-                vnfd-id-ref: cirros_vnfd_v2
-            -   member-vnf-index-ref: three
-                vnfd-connection-point-ref: vnf-cp0
-                vnfd-id-ref: cirros_vnfd_v2
\ No newline at end of file
+nsd:
+  nsd:
+  - description: Placement no constraints NSD
+    designer: ArctosLabs
+    df:
+    - id: default-df
+      vnf-profile:
+      - id: one
+        virtual-link-connectivity:
+        - constituent-cpd-id:
+          - constituent-base-element-id: one
+            constituent-cpd-id: vnf-cp0-ext
+          virtual-link-profile-id: three_vnf_no_constrained_nsd_vld1
+        vnfd-id: cirros_vnfd_v2
+      - id: two
+        virtual-link-connectivity:
+        - constituent-cpd-id:
+          - constituent-base-element-id: two
+            constituent-cpd-id: vnf-cp0-ext
+          virtual-link-profile-id: three_vnf_no_constrained_nsd_vld1
+        - constituent-cpd-id:
+          - constituent-base-element-id: two
+            constituent-cpd-id: vnf-cp0-ext
+          virtual-link-profile-id: three_vnf_no_constrained_nsd_vld2
+        vnfd-id: cirros_vnfd_v2
+      - id: three
+        virtual-link-connectivity:
+        - constituent-cpd-id:
+          - constituent-base-element-id: three
+            constituent-cpd-id: vnf-cp0-ext
+          virtual-link-profile-id: three_vnf_no_constrained_nsd_vld2
+        vnfd-id: cirros_vnfd_v2
+    id: three_vnf_no_constrained_nsd
+    name: three_vnf_no_constrained_nsd
+    version: '1.0'
+
+    virtual-link-desc:
+    - id: three_vnf_no_constrained_nsd_vld1
+      vim-network-name: private
+      df:
+      - id: default-df
+        qos:
+          packet-delay-variation: 30
+    - id: three_vnf_no_constrained_nsd_vld2
+      vim-network-name: private
+      df:
+      - id: default-df
+        qos:
+          latency: 120
+    vnfd-id:
+    - cirros_vnfd_v2