Merge "Add container pull option to install.yaml"
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_heat_context_l3fwd-scale-up.yaml
1 # Copyright (c) 2016-2018 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 {% set vports = vports or 2 %}
16 {% set mem = mem or 20480 %}
17 {% set vcpus = vcpus or 10 %}
18 {% set disk = disk or 6 %}
19 {% set duration = duration or 300 %}
20 ---
21 schema: "yardstick:task:0.1"
22
23 scenarios:
24 -
25   type: NSPerf
26   traffic_profile: ../../traffic_profiles/prox_binsearch.yaml
27   extra_args:
28     vports: {{ vports }}
29   topology: prox-tg-topology-scale-up.yaml
30
31   nodes:
32     tg__0: tg_0.yardstick
33     vnf__0: vnf_0.yardstick
34
35   options:
36     vnf__0:
37       prox_path: /opt/nsb_bin/prox
38       prox_config: "configs/handle_l3fwd-{{ vports }}.cfg"
39       prox_args:
40         "-t": ""
41       prox_files:
42         "configs/ipv4.lua" : ""
43
44     tg__0:
45       prox_path: /opt/nsb_bin/prox
46       prox_config: "configs/gen_l3fwd-{{ vports }}.cfg"
47       prox_args:
48         "-e": ""
49         "-t": ""
50
51   runner:
52     type: Duration
53     # we kill after duration, independent of test duration, so set this high
54     duration: {{ duration }}
55
56 context:
57   name: yardstick
58   image: yardstick-samplevnfs
59   user: ubuntu
60   flavor:
61     vcpus: {{ vcpus }}
62     ram: {{ mem }}
63     disk: {{ disk }}
64     extra_specs:
65       hw:cpu_sockets: 1
66       hw:cpu_cores: {{ vcpus }}
67       hw:cpu_threads: 1
68
69   placement_groups:
70     pgrp1:
71       policy: "availability"
72
73   servers:
74     vnf_0:
75       floating_ip: true
76       placement: "pgrp1"
77     tg_0:
78       floating_ip: true
79       placement: "pgrp1"
80
81   networks:
82     mgmt:
83       cidr: '10.0.1.0/24'
84 {% for vport in range(1,vports,2|int) %}
85     uplink_{{ loop.index0 }}:
86       cidr: '10.0.{{ vport+1 }}.0/24'
87       gateway_ip: 'null'
88       port_security_enabled: False
89       enable_dhcp: 'false'
90
91     downlink_{{ loop.index0 }}:
92       cidr: '10.0.{{ vport+2 }}.0/24'
93       gateway_ip: 'null'
94       port_security_enabled: False
95       enable_dhcp: 'false'
96 {% endfor %}
97