Merge "fix invalid chracters in ansible scripts"
[yardstick.git] / etc / yardstick / nodes / standalone / pod_bm_vnf.yaml
1 # Copyright (c) 2016-2017 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 nodes:
16 -
17     name: vnf__0
18     role: vnf__0
19     ip: {{vnf.ip.mgmt[0]| ipaddr('address')}}
20     user: {{vnf.user}}
21     password: {{vnf.password}}
22     key_filename: {{vnf.key_filename}}
23     interfaces:
24 {% for num in range(num_vnfs|int) %}
25        xe{{num * 2}}:  # logical name from topology.yaml and vnfd.yaml
26            vpci:      "{{vnf.pcis.uplink[num]}}"
27            dpdk_port_num: {{num * 2}}
28            local_ip: "{{vnf.ip.uplink[num] | ipaddr('address')}}"
29            netmask: "{{vnf.ip.uplink[num] | ipaddr('netmask')}}"
30            local_mac:   "{{vnf.mac.uplink[num]}}"
31        xe{{(num * 2) + 1}}:  # logical name from topology.yaml and vnfd.yaml
32            vpci:      "{{vnf.pcis.downlink[num]}}"
33            dpdk_port_num: {{(num * 2) + 1}}
34            local_ip: "{{vnf.ip.downlink[num] | ipaddr('address') }}"
35            netmask: "{{vnf.ip.uplink[num] | ipaddr('netmask')}}"
36            local_mac:   "{{vnf.mac.downlink[num]}}"
37 {% endfor %}