Unify PROX testcases TG and VNF names
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_heat_context_l2fwd-l3fwd-scale-up.yaml
1 # Copyright (c) 2016-2019 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 timeout = timeout 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: trafficgen_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_l2fwd-{{ vports }}.cfg"
39       prox_args:
40         "-t": ""
41
42     tg__0:
43       prox_path: /opt/nsb_bin/prox
44       prox_config: "configs/gen_l2fwd-{{ vports }}.cfg"
45       prox_args:
46         "-e": ""
47         "-t": ""
48
49   runner:
50     type: Search
51     # we kill after duration, independent of test duration, so set this high
52     interval: 5
53     timeout: {{ timeout }}
54
55 -
56   type: NSPerf
57   traffic_profile: ../../traffic_profiles/prox_binsearch.yaml
58   extra_args:
59     vports: {{ vports }}
60   topology: prox-tg-topology-scale-up.yaml
61
62   nodes:
63     tg__0: trafficgen_0.yardstick
64     vnf__0: vnf_0.yardstick
65
66   options:
67     vnf__0:
68       prox_path: /opt/nsb_bin/prox
69       prox_config: "configs/handle_l3fwd-{{ vports }}.cfg"
70       prox_args:
71         "-t": ""
72       prox_files:
73         "configs/ipv4.lua" : ""
74
75     tg__0:
76       prox_path: /opt/nsb_bin/prox
77       prox_config: "configs/gen_l3fwd-{{ vports }}.cfg"
78       prox_args:
79         "-e": ""
80         "-t": ""
81
82   runner:
83     type: Search
84     # we kill after duration, independent of test duration, so set this high
85     interval: 5
86     timeout: {{ timeout }}
87
88 context:
89   name: yardstick
90   image: yardstick-samplevnfs
91   user: ubuntu
92   flavor:
93     vcpus: {{ vcpus }}
94     ram: {{ mem }}
95     disk: {{ disk }}
96     extra_specs:
97       hw:cpu_sockets: 1
98       hw:cpu_cores: {{ vcpus }}
99       hw:cpu_threads: 1
100
101   placement_groups:
102     pgrp1:
103       policy: "availability"
104
105   servers:
106     vnf_0:
107       floating_ip: true
108       placement: "pgrp1"
109     trafficgen_0:
110       floating_ip: true
111       placement: "pgrp1"
112
113   networks:
114     mgmt:
115       cidr: '10.0.1.0/24'
116 {% for vport in range(1,vports,2|int) %}
117     uplink_{{ loop.index0 }}:
118       cidr: '10.0.{{ vport+1 }}.0/24'
119       gateway_ip: 'null'
120       port_security_enabled: False
121       enable_dhcp: 'false'
122
123     downlink_{{ loop.index0 }}:
124       cidr: '10.0.{{ vport+2 }}.0/24'
125       gateway_ip: 'null'
126       port_security_enabled: False
127       enable_dhcp: 'false'
128 {% endfor %}