Merge "Add vIPSEC testcases"
[yardstick.git] / etc / yardstick / nodes / standalone / pod_bm_trex_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 private key file for login
19
20 nodes:
21 -
22     name: trafficgen_1
23     role: tg__1
24     ip: {{gen.ip.mgmt[0]| ipaddr('address')}}
25     user: {{gen.user}}
26     password: {{gen.password}}
27     key_filename: {{gen.key_filename}}
28     interfaces:
29 {% for num in range(item.num_vnfs|int) %}
30        xe{{num * 2}}:  # logical name from topology.yaml and vnfd.yaml
31            vpci:      "{{gen.pcis.private[num]}}"
32            dpdk_port_num: {{num * 2}}
33            local_ip: "{{gen.ip.private[num] | ipaddr('address')}}"
34            netmask: "{{gen.ip.private[num] | ipaddr('netmask')}}"
35            local_mac:   "{{gen.mac.private[num]}}"
36        xe{{(num * 2) + 1}}:  # logical name from topology.yaml and vnfd.yaml
37            vpci:      "{{gen.pcis.public[num]}}"
38            dpdk_port_num: {{(num * 2) + 1}}
39            local_ip: "{{gen.ip.public[num] | ipaddr('address') }}"
40            netmask: "{{gen.ip.private[num] | ipaddr('netmask')}}"
41            local_mac:   "{{gen.mac.public[num]}}"
42 {% endfor %}