Merge "Test case description and configuration file for yardstick_tc088"
[yardstick.git] / etc / yardstick / nodes / standalone / ixia_correlated_template.yaml
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 # Sample config file about the POD information, including the
11 # name/IP/user/ssh key of Bare Metal and Controllers/Computes
12 #
13 # The options of this config file include:
14 # name: the name of this node
15 # role: node's role, support role: Master/Controller/Comupte/BareMetal
16 # ip: the node's IP address
17 # user: the username for login
18 # key_filename:the path of the uplink key file for login
19
20
21 nodes:
22 -
23     name: tg__0
24     role: IxNet
25     ip: {{gen.ip.mgmt[0]| ipaddr('address')}}
26     user: {{gen.user}}
27     password: {{gen.password}}
28     key_filename: {{gen.key_filename}}
29     tg_config:
30         ixchassis: "{{gen.tg_config.ixchassis}}" #ixia chassis ip
31         tcl_port: "{{gen.tg_config.tcl_port}}" # tcl server port
32         lib_path: "{{gen.tg_config.lib_path}}"
33         root_dir: "{{gen.tg_config.root_dir}}"
34         py_bin_path: "{{gen.tg_config.py_bin_path}}"
35         dut_result_dir: "{{gen.tg_config.dut_result_dir}}"
36         version: "{{gen.tg_config.version}}"
37     interfaces:
38 {% for num in range(num_vnfs|int) %}
39        xe{{num * 2}}:  # logical name from topology.yaml and vnfd.yaml
40            vpci:      "{{gen.pcis.uplink[num]}}"
41            dpdk_port_num: {{num * 2}}
42            driver: none
43            local_ip: "{{gen.ip.uplink[num] | ipaddr('address')}}"
44            netmask: "{{gen.ip.uplink[num] | ipaddr('netmask')}}"
45            local_mac:   "{{gen.mac.uplink[num]}}"
46        xe{{(num * 2) + 1}}:  # logical name from topology.yaml and vnfd.yaml
47            vpci:      "{{gen.pcis.downlink[num]}}"
48            dpdk_port_num: {{(num * 2) + 1}}
49            driver: none
50            local_ip: "{{gen.ip.downlink[num] | ipaddr('address') }}"
51            netmask: "{{gen.ip.uplink[num] | ipaddr('netmask')}}"
52            local_mac:   "{{gen.mac.downlink[num]}}"
53 {% endfor %}
54
55 -
56     name: tg__1
57     role: tg__1
58     ip: {{gen_1.ip.mgmt[0]| ipaddr('address')}}
59     user: {{gen_1.user}}
60     password: {{gen_1.password}}
61     key_filename: {{gen_1.key_filename}}
62     interfaces:
63 {% for num in range(num_vnfs|int) %}
64        xe{{num * 2}}:  # logical name from topology.yaml and vnfd.yaml
65            vpci:      "{{gen_1.pcis.uplink[num]}}"
66            dpdk_port_num: {{num * 2}}
67            local_ip: "{{gen_1.ip.uplink[num] | ipaddr('address')}}"
68            netmask: "{{gen_1.ip.uplink[num] | ipaddr('netmask')}}"
69            local_mac:   "{{gen_1.mac.uplink[num]}}"
70        xe{{(num * 2) + 1}}:  # logical name from topology.yaml and vnfd.yaml
71            vpci:      "{{gen_1.pcis.downlink[num]}}"
72            dpdk_port_num: {{(num * 2) + 1}}
73            local_ip: "{{gen_1.ip.downlink[num] | ipaddr('address') }}"
74            netmask: "{{gen_1.ip.uplink[num] | ipaddr('netmask')}}"
75            local_mac:   "{{gen_1.mac.downlink[num]}}"
76 {% endfor %}