Initial commit to gerrit repo
[osm/PLA.git] / osm_pla / test / nsd_unittest2.yaml
diff --git a/osm_pla/test/nsd_unittest2.yaml b/osm_pla/test/nsd_unittest2.yaml
new file mode 100644 (file)
index 0000000..be54166
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright 2020 ArctosLabs Scandinavia AB
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# 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