summaryrefslogtreecommitdiffstats
path: root/tests/blueprints/tosca-vnfd-hello-world-tacker
diff options
context:
space:
mode:
Diffstat (limited to 'tests/blueprints/tosca-vnfd-hello-world-tacker')
-rwxr-xr-xtests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml114
-rwxr-xr-xtests/blueprints/tosca-vnfd-hello-world-tacker/start.sh94
2 files changed, 104 insertions, 104 deletions
diff --git a/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml b/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml
index e8d91af..05fcf8a 100755
--- a/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml
+++ b/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml
@@ -1,57 +1,57 @@
-tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
-
-description: Hello World
-
-metadata:
- template_name: tosca-vnfd-hello-world
-
-topology_template:
- node_templates:
- VDU1:
- type: tosca.nodes.nfv.VDU.Tacker
- capabilities:
- nfv_compute:
- properties:
- num_cpus: 1
- mem_size: 1024 MB
- disk_size: 4 GB
- properties:
- image: models-xenial-server
- availability_zone: nova
- mgmt_driver: noop
- config: |
- param0: key1
- param1: key2
-
- CP1:
- type: tosca.nodes.nfv.CP.Tacker
- properties:
- management: true
- anti_spoofing_protection: false
- requirements:
- - virtualLink:
- node: VL1
- - virtualBinding:
- node: VDU1
-
- CP2:
- type: tosca.nodes.nfv.CP.Tacker
- properties:
- anti_spoofing_protection: false
- requirements:
- - virtualLink:
- node: VL2
- - virtualBinding:
- node: VDU1
-
- VL1:
- type: tosca.nodes.nfv.VL
- properties:
- network_name: vnf_mgmt
- vendor: Tacker
-
- VL2:
- type: tosca.nodes.nfv.VL
- properties:
- network_name: vnf_private
- vendor: Tacker \ No newline at end of file
+tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
+
+description: Hello World
+
+metadata:
+ template_name: tosca-vnfd-hello-world
+
+topology_template:
+ node_templates:
+ VDU1:
+ type: tosca.nodes.nfv.VDU.Tacker
+ capabilities:
+ nfv_compute:
+ properties:
+ num_cpus: 1
+ mem_size: 1024 MB
+ disk_size: 4 GB
+ properties:
+ image: models-xenial-server
+ availability_zone: nova
+ mgmt_driver: noop
+ config: |
+ param0: key1
+ param1: key2
+
+ CP1:
+ type: tosca.nodes.nfv.CP.Tacker
+ properties:
+ management: true
+ anti_spoofing_protection: false
+ requirements:
+ - virtualLink:
+ node: VL1
+ - virtualBinding:
+ node: VDU1
+
+ CP2:
+ type: tosca.nodes.nfv.CP.Tacker
+ properties:
+ anti_spoofing_protection: false
+ requirements:
+ - virtualLink:
+ node: VL2
+ - virtualBinding:
+ node: VDU1
+
+ VL1:
+ type: tosca.nodes.nfv.VL
+ properties:
+ network_name: vnf_mgmt
+ vendor: Tacker
+
+ VL2:
+ type: tosca.nodes.nfv.VL
+ properties:
+ network_name: vnf_private
+ vendor: Tacker
diff --git a/tests/blueprints/tosca-vnfd-hello-world-tacker/start.sh b/tests/blueprints/tosca-vnfd-hello-world-tacker/start.sh
index 55e51ce..d2bf204 100755
--- a/tests/blueprints/tosca-vnfd-hello-world-tacker/start.sh
+++ b/tests/blueprints/tosca-vnfd-hello-world-tacker/start.sh
@@ -1,47 +1,47 @@
-#!/bin/bash
-# Copyright 2016 AT&T Intellectual Property, Inc
-#
-# 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.
-#
-# What this is: Startup script for a simple web server as part of the
-# vHello test of the OPNFV Models project.
-#
-# Status: this is a work in progress, under test.
-#
-# How to use:
-# $ bash start.sh
-
-set -e
-
-sudo apt-get update
-sudo apt-get install -y python3
-
-cat <<EOF >index.html
-<!DOCTYPE html>
-<html>
-<head>
-<title>Hello World!</title>
-<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1"/>
-<style>
-body { width: 100%; background-color: white; color: black; padding: 0px; margin: 0px; font-family: sans-serif; font-size:100%; }
-</style>
-</head>
-<body>
-Hello World!<br>
-<a href="http://wiki.opnfv.org"><img src="logo.png"></a>
-</body></html>
-EOF
-
-wget https://www.opnfv.org/sites/all/themes/opnfv/logo.png
-
-nohup sudo python3 -m http.server 80 > /dev/null 2>&1 & \ No newline at end of file
+#!/bin/bash
+# Copyright 2016 AT&T Intellectual Property, Inc
+#
+# 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.
+#
+# What this is: Startup script for a simple web server as part of the
+# vHello test of the OPNFV Models project.
+#
+# Status: this is a work in progress, under test.
+#
+# How to use:
+# $ bash start.sh
+
+set -e
+
+sudo apt-get update
+sudo apt-get install -y python3
+
+cat <<EOF >index.html
+<!DOCTYPE html>
+<html>
+<head>
+<title>Hello World!</title>
+<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1"/>
+<style>
+body { width: 100%; background-color: white; color: black; padding: 0px; margin: 0px; font-family: sans-serif; font-size:100%; }
+</style>
+</head>
+<body>
+Hello World!<br>
+<a href="http://wiki.opnfv.org"><img src="logo.png"></a>
+</body></html>
+EOF
+
+wget https://www.opnfv.org/sites/all/themes/opnfv/logo.png
+
+nohup sudo python3 -m http.server 80 > /dev/null 2>&1 &