NSB Topology fix for Prox 4 port test case
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_heat_context_mpls_tagging-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_mpls_tag_untag.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_mpls_tag_untag-{{ vports }}.cfg"
39       prox_args:
40         "-t": ""
41
42     tg__0:
43       prox_path: /opt/nsb_bin/prox
44       prox_config: "configs/gen_mpls_tag_untag-{{ vports }}.cfg"
45       prox_args:
46         "-e": ""
47         "-t": ""
48
49   runner:
50     type: Duration
51     # we kill after duration, independent of test duration, so set this high
52     duration: {{ duration }}
53
54 context:
55   name: yardstick
56   image: yardstick-samplevnfs
57   user: ubuntu
58   flavor:
59     vcpus: {{ vcpus }}
60     ram: {{ mem }}
61     disk: {{ disk }}
62     extra_specs:
63       hw:cpu_sockets: 1
64       hw:cpu_cores: {{ vcpus }}
65       hw:cpu_threads: 1
66
67   placement_groups:
68     pgrp1:
69       policy: "availability"
70
71   servers:
72     vnf_0:
73       floating_ip: true
74       placement: "pgrp1"
75     tg_0:
76       floating_ip: true
77       placement: "pgrp1"
78
79   networks:
80     mgmt:
81       cidr: '10.0.1.0/24'
82 {% for vport in range(1,vports,2|int) %}
83     uplink_{{ loop.index0 }}:
84       cidr: '10.0.{{ vport+1 }}.0/24'
85       gateway_ip: 'null'
86       port_security_enabled: False
87       enable_dhcp: 'false'
88
89     downlink_{{ loop.index0 }}:
90       cidr: '10.0.{{ vport+2 }}.0/24'
91       gateway_ip: 'null'
92       port_security_enabled: False
93       enable_dhcp: 'false'
94 {% endfor %}