Merge "Pass the path of ssh public key to scenario method"
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_ovs-dpdk_l2fwd_multiflow-scale-up.yaml
1 # Copyright (c) 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 ---
17 schema: "yardstick:task:0.1"
18
19 scenarios:
20 -
21   type: NSPerf
22   traffic_profile: ../../traffic_profiles/prox_binsearch.yaml
23   extra_args:
24     vports: {{ vports }}
25   topology: prox-tg-topology-scale-up.yaml
26
27   nodes:
28     tg__0: tg__0.yardstick
29     vnf__0: vnf__0.yardstick
30
31   options:
32     interface_speed_gbps: 10
33
34     vnf__0:
35       prox_path: /opt/nsb_bin/prox
36       prox_config: "configs/handle_l2fwd_multiflow-{{ vports }}.cfg"
37       prox_args:
38         "-t": ""
39
40     tg__0:
41       prox_path: /opt/nsb_bin/prox
42       prox_config: "configs/gen_l2fwd_multiflow-{{ vports }}.cfg"
43       prox_args:
44         "-e": ""
45         "-t": ""
46
47   runner:
48     type: Duration
49     # we kill after duration, independent of test duration, so set this high
50     duration: 600
51
52 contexts:
53    - name: yardstick
54      type: Node
55      file: prox_tg_bm.yaml
56    - name: yardstick
57      type: StandaloneOvsDpdk
58      file: /etc/yardstick/nodes/standalone/host_ovs.yaml
59      vm_deploy: True
60      ovs_properties:
61        version:
62          ovs: 2.8.0
63          dpdk: 17.05.2
64        pmd_threads: 2
65        ram:
66          socket_0: 2048
67          socket_1: 2048
68        queues: 4
69        vpath: "/usr/local"
70      flavor:
71        images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
72        ram: 16384
73        extra_specs:
74          hw:cpu_sockets: 1
75          hw:cpu_cores: 10
76          hw:cpu_threads: 2
77      servers:
78        vnf__0:
79          network_ports:
80            mgmt:
81              cidr: '1.1.1.62/24'
82 {% for port_num in range((vports/2)|int) %}
83            xe{{ port_num * 2 }}:
84              - uplink_{{ port_num }}
85            xe{{ (port_num * 2) + 1 }}:
86              - downlink_{{ port_num }}
87 {% endfor %}
88      networks:
89 {% for port_num in range((vports/2)|int) %}
90        uplink_{{ port_num }}:
91          port_num: {{ networks.uplink[port_num].port_num }}
92          phy_port: "{{ networks.uplink[port_num].phy_port }}"
93          vpci: "{{ networks.uplink[port_num].vpci }}"
94          cidr: "{{ networks.uplink[port_num].cidr }}"
95          gateway_ip: "{{ networks.uplink[port_num].gateway_ip }}"
96        downlink_{{ port_num }}:
97          port_num: {{ networks.downlink[port_num].port_num }}
98          phy_port: "{{ networks.downlink[port_num].phy_port }}"
99          vpci: "{{ networks.downlink[port_num].vpci }}"
100          cidr: "{{ networks.downlink[port_num].cidr }}"
101          gateway_ip: "{{ networks.downlink[port_num].gateway_ip }}"
102 {% endfor %}