25e7c22af43f60b5ae765f5ac0f31fb1ec88a94e
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_sriov_mpls_tagging-scale-up.yaml
1 # Copyright (c) 2018-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 duration = duration or 400 %}
17 ---
18 schema: "yardstick:task:0.1"
19
20 scenarios:
21 -
22   type: NSPerf
23   traffic_profile: ../../traffic_profiles/prox_mpls_tag_untag.yaml
24   extra_args:
25     vports: {{ vports }}
26   topology: prox-tg-topology-scale-up.yaml
27
28   nodes:
29     tg__0: tg__0.yardstick
30     vnf__0: vnf__0.yardstick
31
32   options:
33     vnf__0:
34       prox_path: /opt/nsb_bin/prox
35       prox_config: "configs/handle_mpls_tag_untag-{{ vports }}.cfg"
36       prox_args:
37         "-t": ""
38
39     tg__0:
40       prox_path: /opt/nsb_bin/prox
41       prox_config: "configs/gen_mpls_tag_untag-{{ vports }}.cfg"
42       prox_args:
43         "-e": ""
44         "-t": ""
45
46   runner:
47     type: Duration
48     # we kill after duration, independent of test duration, so set this high
49     duration: {{ duration }}
50
51 contexts:
52    - name: yardstick
53      type: Node
54      file: prox_tg_bm.yaml
55    - name: yardstick
56      type: StandaloneSriov
57      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
58      vm_deploy: True
59      flavor:
60        images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
61        ram: 16384
62        extra_specs:
63          hw:cpu_sockets: 1
64          hw:cpu_cores: 10
65          hw:cpu_threads: 2
66        user: ""
67        password: ""
68      servers:
69        vnf__0:
70          network_ports:
71            mgmt:
72              cidr: '1.1.1.62/24'
73 {% for port_num in range((vports/2)|int) %}
74            xe{{ port_num * 2 }}:
75              - uplink_{{ port_num }}
76            xe{{ (port_num * 2) + 1 }}:
77              - downlink_{{ port_num }}
78 {% endfor %}
79      networks:
80 {% for port_num in range((vports/2)|int) %}
81        uplink_{{ port_num }}:
82          phy_port: "{{ networks.uplink[port_num].phy_port }}"
83          vpci: "{{ networks.uplink[port_num].vpci }}"
84          cidr: "{{ networks.uplink[port_num].cidr }}"
85          gateway_ip: "{{ networks.uplink[port_num].gateway_ip }}"
86        downlink_{{ port_num }}:
87          phy_port: "{{ networks.downlink[port_num].phy_port }}"
88          vpci: "{{ networks.downlink[port_num].vpci }}"
89          cidr: "{{ networks.downlink[port_num].cidr }}"
90          gateway_ip: "{{ networks.downlink[port_num].gateway_ip }}"
91 {% endfor %}