Fixed document for Grafana Port usage
[yardstick.git] / yardstick / tests / unit / benchmark / contexts / nodes_sample_ovsdpdk.yaml
1 # Copyright (c) 2016 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: trafficgen_1
18     role: TrafficGen
19     ip: 10.223.197.182
20     user: root
21     auth_type: password
22     password: intel123
23     interfaces:
24         xe0:  # logical name from topology.yaml and vnfd.yaml
25             vpci:      "0000:03:00.0"
26             driver:    ixgbe
27             dpdk_port_num: 0
28             local_ip: "152.16.100.20"
29             netmask:   "255.255.255.0"
30             local_mac:   "90:e2:ba:77:ce:68"
31         xe1:  # logical name from topology.yaml and vnfd.yaml
32             vpci:      "0000:03:00.1"
33             driver:    ixgbe
34             dpdk_port_num: 1
35             local_ip: "152.16.100.21"
36             netmask:   "255.255.255.0"
37             local_mac:   "90:e2:ba:77:ce:69"
38 -
39     name: ovs
40     role: Ovsdpdk1
41     ip: 10.223.197.222
42     user: root
43     auth_type: password
44     password: intel123
45     vpath: "/usr/local/"
46     vports:
47      - dpdkvhostuser0
48      - dpdkvhostuser1
49     vports_mac:
50      - "00:00:00:00:00:03"
51      - "00:00:00:00:00:04"
52     phy_ports: # Physical ports to configure ovs
53      - "0000:06:00.0"
54      - "0000:06:00.1"
55     flow:
56      - ovs-ofctl add-flow br0 in_port=1,action=output:3
57      - ovs-ofctl add-flow br0 in_port=3,action=output:1
58      - ovs-ofctl add-flow br0 in_port=4,action=output:2
59      - ovs-ofctl add-flow br0 in_port=2,action=output:4
60     phy_driver:    i40e # kernel driver
61     images: "/var/lib/libvirt/images/ubuntu1.img"
62
63 -
64     name: vnf
65     role: vnf
66     ip: 10.223.197.155
67     user: root
68     auth_type: password
69     password: intel123
70     host: 10.223.197.140
71     interfaces:
72         xe0:  # logical name from topology.yaml and vnfd.yaml
73             vpci:      "0000:00:04.0"
74             driver:    virtio-pci
75             dpdk_port_num: 0
76             local_ip: "152.16.100.19"
77             netmask:   "255.255.255.0"
78             local_mac:   "00:00:00:00:00:03"
79
80         xe1:  # logical name from topology.yaml and vnfd.yaml
81             vpci:      "0000:00:05.0"
82             driver:    virtio-pci
83             dpdk_port_num: 1
84             local_ip: "152.16.40.19"
85             netmask:   "255.255.255.0"
86             local_mac:   "00:00:00:00:00:04"
87     routing_table:
88     - network: "152.16.100.20"
89       netmask: "255.255.255.0"
90       gateway: "152.16.100.20"
91       if: "xe0"
92     - network: "152.16.40.20"
93       netmask: "255.255.255.0"
94       gateway: "152.16.40.20"
95       if: "xe1"
96     nd_route_tbl:
97     - network: "0064:ff9b:0:0:0:0:9810:6414"
98       netmask: "112"
99       gateway: "0064:ff9b:0:0:0:0:9810:6414"
100       if: "xe0"
101     - network: "0064:ff9b:0:0:0:0:9810:2814"
102       netmask: "112"
103       gateway: "0064:ff9b:0:0:0:0:9810:2814"
104       if: "xe1"