Unify vFW testcases TG and VNF names
[yardstick.git] / samples / vnf_samples / nsut / vfw / tc_ovs_vfw_udp_scale_out.yaml
1 # Copyright (c) 2017-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 ---
16 schema: yardstick:task:0.1
17 scenarios:
18   - type: NSPerf
19     traffic_profile: ../../traffic_profiles/ipv4_throughput-{{ num_vnfs }}.yaml
20     topology: vfw-tg-topology-scale-out-{{ num_vnfs }}.yaml
21     nodes:
22       tg__0: trafficgen_0.yardstick
23 {% for vnf_num in range(num_vnfs|int) %}
24       vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
25 {% endfor %}
26     options:
27       framesize:
28         uplink: {{ flow.pkt_size.uplink }}
29         downlink: {{ flow.pkt_size.downlink }}
30       flow:
31         src_ip:
32 {% for vnf_num in range(num_vnfs|int) %}
33           - {'tg__0': 'xe{{ (vnf_num * 2)}}'}
34 {% endfor %}
35         dst_ip:
36 {% for vnf_num in range(num_vnfs|int) %}
37           - {'tg__0': 'xe{{ (vnf_num * 2) + 1}}'}
38 {% endfor %}
39         count: {{ flow.count }}
40       traffic_type: {{ flow.traffic_type }}
41       rfc2544:
42         allowed_drop_rate: {{ flow.rfc2544.allowed_drop_rate }}
43 {% for vnf_num in range(num_vnfs|int) %}
44       vnf__{{ vnf_num }}:
45         rules: acl_1rule.yaml
46         vnf_config: {lb_config: '{{flow.vnf_config.lb_config}}', lb_count: {{flow.vnf_config.lb_count}} , worker_config: '{{flow.vnf_config.worker_config}}', worker_threads: {{flow.vnf_config.worker_threads}}}
47 {% endfor %}
48     runner:
49       type: Iteration
50       iterations: 10
51       interval: 35
52 contexts:
53    - name: yardstick
54      type: Node
55      file: /etc/yardstick/nodes/baremetal_trex_{{num_vnfs}}.yaml
56    - type: StandaloneOvsDpdk
57      name: yardstick
58      file: /etc/yardstick/nodes/ovs_host.yaml
59      vm_deploy: True
60      ovs_properties:
61        version:
62          ovs: {{ ovs_properties.ovs  }}
63          dpdk: {{ ovs_properties.dpdk }}
64        vpath: "{{ ovs_properties.vpath }}"
65        queues: {{ovs_properties.queues}}
66        pmd_threads: {{ovs_properties.pmd_threads}}
67        ram:
68          socket_0: {{ovs_properties.ram.socket_0}}
69          socket_1: {{ovs_properties.ram.socket_1}}
70      flavor:
71        images: {{ flavor.image }}
72        ram: {{ flavor.ram }}
73        extra_specs:
74          hw:cpu_sockets: {{ flavor.extra_specs.cpu_sockets }}
75          hw:cpu_cores: {{ flavor.extra_specs.cpu_cores }}
76          hw:cpu_threads: {{ flavor.extra_specs.cpu_threads }}
77        user: {{ flavor.user }}
78        password: {{ flavor.password }}
79      servers:
80 {% for vnf_num in range(num_vnfs|int) %}
81        vnf_{{ vnf_num }}:
82          network_ports:
83            mgmt:
84              cidr: '{{vnf.ip.mgmt[vnf_num]}}'
85            xe0:
86              - uplink_{{ vnf_num }}
87            xe1:
88              - downlink_{{ vnf_num }}
89 {% endfor %}
90      networks:
91 {% for vnf_num in range(num_vnfs|int) %}
92        uplink_{{ vnf_num }}:
93          port_num: {{ vnf_num * 2 }}
94          phy_port: "{{vnf.pcis.uplink[vnf_num]}}"
95          vpci: "0000:00:{{10 + (99 | random)}}.0"
96          cidr: '{{vnf.ip.uplink[vnf_num]}}'
97          gateway_ip: '{{gen.ip.uplink[vnf_num]}}'
98        downlink_{{ vnf_num }}:
99          port_num: {{ (vnf_num * 2) + 1}}
100          phy_port: "{{vnf.pcis.downlink[vnf_num]}}"
101          vpci: "0000:00:{{10 + (9 | random)}}.0"
102          cidr: '{{vnf.ip.downlink[vnf_num]}}'
103          gateway_ip: '{{gen.ip.downlink[vnf_num]}}'
104 {% endfor %}