Revert "Removing deprecated/unused/outdated code"
[osm/RO.git] / vnfs / examples / linux_2VMs_v02.yaml
index 41b5982..a4db895 100644 (file)
-##\r
-# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.\r
-# This file is part of openmano\r
-# All Rights Reserved.\r
-#\r
-# Licensed under the Apache License, Version 2.0 (the "License"); you may\r
-# not use this file except in compliance with the License. You may obtain\r
-# a copy of the License at\r
-#\r
-#         http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\r
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r
-# License for the specific language governing permissions and limitations\r
-# under the License.\r
-#\r
-# For those usages not covered by the Apache License, Version 2.0 please\r
-# contact with: nfvlabs@tid.es\r
-##\r
----\r
-schema_version: "0.2"\r
-vnf:\r
-    name:        linux_2VMs_v02\r
-    description: "Example of a linux VNF consisting of two VMs with one internal network"\r
-    # class: parent      # Optional. Used to organize VNFs\r
-    internal-connections:\r
-    -   name:        internalnet\r
-        description: internalnet\r
-        type:        e-lan\r
-        implementation: overlay\r
-        ip-profile:\r
-            ip-version:       IPv4\r
-            subnet-address:   192.168.1.0/24\r
-            gateway-address:  192.168.1.1\r
-            dns-address:      8.8.8.8\r
-            dhcp:\r
-                enabled: true\r
-                start-address: 192.168.1.100\r
-                count: 100\r
-        elements:\r
-        -   VNFC:             linux_2VMs-VM1\r
-            local_iface_name: xe0\r
-            ip_address:       192.168.1.2\r
-        -   VNFC:             linux_2VMs-VM2\r
-            local_iface_name: xe0\r
-            ip_address:       192.168.1.3\r
-    external-connections:\r
-    -   name:              control0\r
-        type:              mgmt\r
-        VNFC:              linux_2VMs-VM1\r
-        local_iface_name:  eth0\r
-        description:       control interface VM1\r
-    -   name:              control1\r
-        type:              mgmt\r
-        VNFC:              linux_2VMs-VM2\r
-        local_iface_name:  eth0\r
-        description:       control interface VM2\r
-    -   name:              in\r
-        type:              bridge\r
-        VNFC:              linux_2VMs-VM1\r
-        local_iface_name:  xe1\r
-        description:       data interface input\r
-    -   name:              out\r
-        type:              bridge\r
-        VNFC:              linux_2VMs-VM2\r
-        local_iface_name:  xe1\r
-        description:       data interface output\r
-    VNFC:\r
-    -   name:        linux_2VMs-VM1\r
-        description: "Linux VM1 with 4 CPUs, 2 GB RAM and 3 bridge interfaces"\r
-        #Copy the image to a compute path and edit this path\r
-        VNFC image:  /path/to/imagefolder/linux_VNF_2VMs.qcow2\r
-        disk: 10\r
-        vcpus: 4\r
-        ram: 2048\r
-        bridge-ifaces:\r
-        -   name:      eth0\r
-            vpci:      "0000:00:09.0"\r
-            bandwidth: 1 Mbps          # Optional, informative only\r
-        -   name: xe0\r
-            vpci:      "0000:00:11.0"\r
-            bandwidth: 1 Mbps\r
-        -   name: xe1\r
-            vpci:      "0000:00:12.0"\r
-            bandwidth: 1 Mbps\r
-    -   name:        linux_2VMs-VM2\r
-        description: "Linux VM2 with 2 CPUs, 2 GB RAM and 3 bridge interfaces"\r
-        #Copy the image to a compute path and edit this path\r
-        VNFC image:  /path/to/imagefolder/linux_VNF_2VMs.qcow2\r
-        disk: 10\r
-        vcpus: 2\r
-        ram: 2048\r
-        bridge-ifaces:\r
-        -   name:      eth0\r
-            vpci:      "0000:00:09.0"\r
-            bandwidth: 1 Mbps          # Optional, informative only\r
-        -   name: xe0\r
-            vpci:      "0000:00:11.0"\r
-            bandwidth: 1 Mbps\r
-        -   name: xe1\r
-            vpci:      "0000:00:12.0"\r
-            bandwidth: 1 Mbps\r
-\r
+##
+# Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U.
+# This file is part of openmano
+# All Rights Reserved.
+#
+# 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.
+#
+# For those usages not covered by the Apache License, Version 2.0 please
+# contact with: nfvlabs@tid.es
+##
+---
+schema_version: "0.2"
+vnf:
+    name:        linux_2VMs_v02
+    description: "Example of a linux VNF consisting of two VMs with one internal network"
+    # class: parent      # Optional. Used to organize VNFs
+    internal-connections:
+    -   name:        internalnet
+        description: internalnet
+        type:        e-lan
+        implementation: overlay
+        ip-profile:
+            ip-version:       IPv4
+            subnet-address:   192.168.1.0/24
+            gateway-address:  192.168.1.1
+            dns-address:      8.8.8.8
+            dhcp:
+                enabled: true
+                start-address: 192.168.1.100
+                count: 100
+        elements:
+        -   VNFC:             linux_2VMs-VM1
+            local_iface_name: xe0
+            ip_address:       192.168.1.2
+        -   VNFC:             linux_2VMs-VM2
+            local_iface_name: xe0
+            ip_address:       192.168.1.3
+    external-connections:
+    -   name:              control0
+        type:              mgmt
+        VNFC:              linux_2VMs-VM1
+        local_iface_name:  eth0
+        description:       control interface VM1
+    -   name:              control1
+        type:              mgmt
+        VNFC:              linux_2VMs-VM2
+        local_iface_name:  eth0
+        description:       control interface VM2
+    -   name:              in
+        type:              bridge
+        VNFC:              linux_2VMs-VM1
+        local_iface_name:  xe1
+        description:       data interface input
+    -   name:              out
+        type:              bridge
+        VNFC:              linux_2VMs-VM2
+        local_iface_name:  xe1
+        description:       data interface output
+    VNFC:
+    -   name:        linux_2VMs-VM1
+        description: "Linux VM1 with 4 CPUs, 2 GB RAM and 3 bridge interfaces"
+        #Copy the image to a compute path and edit this path
+        VNFC image:  /path/to/imagefolder/linux_VNF_2VMs.qcow2
+        disk: 10
+        vcpus: 4
+        ram: 2048
+        bridge-ifaces:
+        -   name:      eth0
+            vpci:      "0000:00:09.0"
+            bandwidth: 1 Mbps          # Optional, informative only
+        -   name: xe0
+            vpci:      "0000:00:11.0"
+            bandwidth: 1 Mbps
+        -   name: xe1
+            vpci:      "0000:00:12.0"
+            bandwidth: 1 Mbps
+    -   name:        linux_2VMs-VM2
+        description: "Linux VM2 with 2 CPUs, 2 GB RAM and 3 bridge interfaces"
+        #Copy the image to a compute path and edit this path
+        VNFC image:  /path/to/imagefolder/linux_VNF_2VMs.qcow2
+        disk: 10
+        vcpus: 2
+        ram: 2048
+        bridge-ifaces:
+        -   name:      eth0
+            vpci:      "0000:00:09.0"
+            bandwidth: 1 Mbps          # Optional, informative only
+        -   name: xe0
+            vpci:      "0000:00:11.0"
+            bandwidth: 1 Mbps
+        -   name: xe1
+            vpci:      "0000:00:12.0"
+            bandwidth: 1 Mbps
+