openmano first code upload
[osm/RO.git] / vnfs / examples / dataplaneVNF_2VMs.yaml
diff --git a/vnfs/examples/dataplaneVNF_2VMs.yaml b/vnfs/examples/dataplaneVNF_2VMs.yaml
new file mode 100644 (file)
index 0000000..bd84aba
--- /dev/null
@@ -0,0 +1,80 @@
+---\r
+vnf:\r
+    name:        dataplaneVNF_2VMs\r
+    description: "Example of a dataplane VNF consisting of two VMs for data plane workloads with one internal network"\r
+    # class: parent      # Optional. Used to organize VNFs\r
+    internal-connections:\r
+    -   name:        datanet\r
+        description: datanet\r
+        type:        data\r
+        elements:\r
+        -   VNFC:             VNF_2VMs-VM1\r
+            local_iface_name: xe0\r
+        -   VNFC:             VNF_2VMs-VM2\r
+            local_iface_name: xe0\r
+    external-connections:\r
+    -   name:              control0\r
+        type:              mgmt\r
+        VNFC:              VNF_2VMs-VM1\r
+        local_iface_name:  eth0\r
+        description:       control interface VM1\r
+    -   name:              control1\r
+        type:              mgmt\r
+        VNFC:              VNF_2VMs-VM2\r
+        local_iface_name:  eth0\r
+        description:       control interface VM2\r
+    -   name:              in\r
+        type:              data\r
+        VNFC:              VNF_2VMs-VM1\r
+        local_iface_name:  xe1\r
+        description:       Dataplane interface input\r
+    -   name:              out\r
+        type:              data\r
+        VNFC:              VNF_2VMs-VM2\r
+        local_iface_name:  xe1\r
+        description:       Dataplane interface output\r
+    VNFC:\r
+    -   name:        VNF_2VMs-VM1\r
+        description: "Dataplane VM1 with 4 threads, 2 GB hugepages, 2 SR-IOV interface"\r
+        #Copy the image to a compute path and edit this path\r
+        VNFC image:  /path/to/imagefolder/dataplaneVNF_2VMs.qcow2\r
+        disk: 10\r
+        numas: \r
+        -   paired-threads: 2         # "cores", "paired-threads", "threads"\r
+            memory: 2                 # GBytes\r
+            interfaces:\r
+            -   name:      xe0\r
+                vpci:      "0000:00:11.0"\r
+                dedicated: "no"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)\r
+                bandwidth: 1 Gbps\r
+            -   name:      xe1\r
+                vpci:      "0000:00:12.0"\r
+                dedicated: "no"\r
+                bandwidth: 1 Gbps\r
+        bridge-ifaces:\r
+        -   name:      eth0\r
+            vpci:      "0000:00:09.0"\r
+            bandwidth: 1 Mbps          # Optional, informative only\r
+\r
+    -   name:        VNF_2VMs-VM2\r
+        description: "Dataplane VM1 with 2 threads, 2 GB hugepages, 2 SR-IOV interface"\r
+        #Copy the image to a compute path and edit this path\r
+        VNFC image:  /path/to/imagefolder/dataplaneVNF_2VMs.qcow2\r
+        disk: 10\r
+        numas: \r
+        -   paired-threads: 1         # "cores", "paired-threads", "threads"\r
+            memory: 2                 # GBytes\r
+            interfaces:\r
+            -   name:      xe0\r
+                vpci:      "0000:00:11.0"\r
+                dedicated: "no"         # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)\r
+                bandwidth: 1 Gbps\r
+            -   name:      xe1\r
+                vpci:      "0000:00:12.0"\r
+                dedicated: "no"\r
+                bandwidth: 1 Gbps\r
+        bridge-ifaces:\r
+        -   name:      eth0\r
+            vpci:      "0000:00:09.0"\r
+            bandwidth: 1 Mbps          # Optional, informative only\r
+\r