Merge "Improve "get_server" function in Kubernetes context"
[yardstick.git] / yardstick / tests / unit / benchmark / contexts / standalone_sample.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 ---
16 # Sample config file about the POD information, including the
17 # name/IP/user/ssh key of Bare Metal and Controllers/Computes
18 #
19 # The options of this config file include:
20 # name: the name of this node
21 # role: node's role, support role: Master/Controller/Comupte/BareMetal
22 # ip: the node's IP address
23 # user: the username for login
24 # key_filename:the path of the private key file for login
25
26 nodes:
27 -
28     name: node1
29     role: TrafficGen
30     ip: 1.1.1.1
31     user: root
32     password: r00t
33     interfaces:
34         xe0:  # logical name from topology.yaml and vnfd.yaml
35             vpci:      "0000:05:00.0"
36             driver:    i40e
37             dpdk_port_num: 0
38             local_ip: "152.16.100.20"
39             netmask:   "255.255.255.0"
40             local_mac:   "00:00:00:00:00:01"
41         xe1:  # logical name from topology.yaml and vnfd.yaml
42             vpci:      "0000:05:00.1"
43             driver:    i40e
44             dpdk_port_num: 1
45             local_ip: "152.16.100.21"
46             netmask:   "255.255.255.0"
47             local_mac:   "00:00:00:00:00:02"
48 -
49     name: node2
50     role: nfvi_node
51     class: OvsDpdk
52     ip: 1.1.1.2
53     user: root
54     password: r00t
55     vports:
56      - dpdkvhostuser0
57      - dpdkvhostuser1
58     vports_mac:
59      - "00:00:00:00:00:03"
60      - "00:00:00:00:00:04"
61     phy_ports: # Physical ports to configure sriov
62      - "0000:05:00.0"
63      - "0000:05:00.1"
64     flow:
65      - ovs-ofctl add-flow br0 in_port=1,action=output:3
66      - ovs-ofctl add-flow br0 in_port=3,action=output:1
67      - ovs-ofctl add-flow br0 in_port=4,action=output:2
68      - ovs-ofctl add-flow br0 in_port=2,action=output:4
69     phy_driver:    i40e # kernel driver
70     images: "/var/lib/libvirt/images/ubuntu.qcow2"
71
72 -
73     name: node3
74     role: vnf
75     ip: 1.1.1.3
76     user: root
77     password: r00t
78     host: 1.1.1.1
79     interfaces:
80         xe0:  # logical name from topology.yaml and vnfd.yaml
81             vpci:      "0000:00:04.0"
82             driver:    virtio-pci
83             dpdk_port_num: 0
84             local_ip: "152.16.100.19"
85             netmask:   "255.255.255.0"
86             local_mac:   "00:00:00:00:00:05"
87
88         xe1:  # logical name from topology.yaml and vnfd.yaml
89             vpci:      "0000:00:05.0"
90             driver:    virtio-pci
91             dpdk_port_num: 1
92             local_ip: "152.16.40.19"
93             netmask:   "255.255.255.0"
94             local_mac:   "00:00:00:00:00:06"
95     routing_table:
96     - network: "152.16.100.20"
97       netmask: "255.255.255.0"
98       gateway: "152.16.100.20"
99       if: "xe0"
100     - network: "152.16.40.20"
101       netmask: "255.255.255.0"
102       gateway: "152.16.40.20"
103       if: "xe1"
104     nd_route_tbl:
105     - network: "0064:ff9b:0:0:0:0:9810:6414"
106       netmask: "112"
107       gateway: "0064:ff9b:0:0:0:0:9810:6414"
108       if: "xe0"
109     - network: "0064:ff9b:0:0:0:0:9810:2814"
110       netmask: "112"
111       gateway: "0064:ff9b:0:0:0:0:9810:2814"
112       if: "xe1"