aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/templates/vnf-services/multi-vnf-ubuntu-service.yaml.j2
diff options
context:
space:
mode:
authorJulien Fontaine <julien.fontaine@bell.ca>2021-08-04 15:52:02 -0400
committerOleg Mitsura <oleg.mitsura@amdocs.com>2021-10-19 06:44:23 -0400
commitc3ef82f489b915095b7464fb119daf43b84f67f8 (patch)
tree5d6ce5b4896e4b0b0844dfccb0ebd59f2c72f244 /src/onaptests/templates/vnf-services/multi-vnf-ubuntu-service.yaml.j2
parent062f7ed7f73ed61dc3990c3a23403fd544ae6261 (diff)
[TEST] Added support for multi-vnf macro instantiation
Decoupled service YAML template into a model YAML template and a (SO) service YAML template. Model YAML template will be used during the onboarding steps and service YAML template will be used to generate payload when sending instantiation request to SO. Service YAML template reference model name to use for its VNF/VF-Modules using "model_name" field. This provide more flexibility to design the testcase and enables to setup more complex testcases like instantiating several VNF/VF-MOdules using the same SDC model infos. This patch aims to provide backward compatibility for existing testcases based on YAML template. Issue-ID: TEST-358 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Change-Id: I69d370eff4d383d5af135206476c65e4a56e4ee5
Diffstat (limited to 'src/onaptests/templates/vnf-services/multi-vnf-ubuntu-service.yaml.j2')
-rw-r--r--src/onaptests/templates/vnf-services/multi-vnf-ubuntu-service.yaml.j235
1 files changed, 35 insertions, 0 deletions
diff --git a/src/onaptests/templates/vnf-services/multi-vnf-ubuntu-service.yaml.j2 b/src/onaptests/templates/vnf-services/multi-vnf-ubuntu-service.yaml.j2
new file mode 100644
index 0000000..9403a7d
--- /dev/null
+++ b/src/onaptests/templates/vnf-services/multi-vnf-ubuntu-service.yaml.j2
@@ -0,0 +1,35 @@
+---
+{{ service_name }}:
+ subscription_service_type: {{ service_name }}
+ vnfs:
+ - model_name: {{ service_name }}VF0
+ vnf_name: {{ service_name }}00
+ parameters:
+ vnf-name: "multi_vnf_ubuntu_0_0"
+ vnf_name: "MultiVnfUbuntu00"
+ vf_modules:
+ - vf_module_name: {{ service_name }}00network0
+ model_name: base
+ parameters:
+ name: "multi_vnf_ubuntu_0_0_network_0"
+ cidr: "10.10.10.0/24"
+ - model_name: {{ service_name }}VF0
+ vnf_name: {{ service_name }}01
+ parameters:
+ vnf-name: "multi_vnf_ubuntu_0_1"
+ vnf_name: "MultiVnfUbuntu01"
+ vf_modules:
+ - vf_module_name: {{ service_name }}01vfm0
+ model_name: ubuntu-vf-module
+ parameters:
+ name: "multi_vnf_ubuntu_0_1_vfm_0"
+ network_mgmt: "vlan197_net"
+ key_name: "sebastien"
+ network_name: "multi_vnf_ubuntu_0_0_network_0"
+ - vf_module_name: {{ service_name }}01vfm1
+ model_name: ubuntu-vf-module
+ parameters:
+ name: "multi_vnf_ubuntu_0_1_vfm_1"
+ network_mgmt: "vlan197_net"
+ key_name: "sebastien"
+ network_name: "multi_vnf_ubuntu_0_0_network_0"