Merge "Improve "get_server" function in Kubernetes context"
[yardstick.git] / yardstick / tests / unit / benchmark / contexts / standalone_duplicate_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     name: node2
73     role: nfvi_node
74     class: OvsDpdk
75     ip: 1.1.1.5
76     user: root
77     password: r00t
78     vports:
79      - dpdkvhostuser0
80      - dpdkvhostuser1
81     vports_mac:
82      - "00:00:00:00:00:03"
83      - "00:00:00:00:00:04"
84     phy_ports: # Physical ports to configure sriov
85      - "0000:05:00.0"
86      - "0000:05:00.1"
87     flow:
88      - ovs-ofctl add-flow br0 in_port=1,action=output:3
89      - ovs-ofctl add-flow br0 in_port=3,action=output:1
90      - ovs-ofctl add-flow br0 in_port=4,action=output:2
91      - ovs-ofctl add-flow br0 in_port=2,action=output:4
92     phy_driver:    i40e # kernel driver
93     images: "/var/lib/libvirt/images/ubuntu.qcow2"
94
95 -
96     name: node3
97     role: vnf
98     ip: 1.1.1.3
99     user: root
100     password: r00t
101     host: 1.1.1.1
102     interfaces:
103         xe0:  # logical name from topology.yaml and vnfd.yaml
104             vpci:      "0000:00:04.0"
105             driver:    virtio-pci
106             dpdk_port_num: 0
107             local_ip: "152.16.100.19"
108             netmask:   "255.255.255.0"
109             local_mac:   "00:00:00:00:00:05"
110
111         xe1:  # logical name from topology.yaml and vnfd.yaml
112             vpci:      "0000:00:05.0"
113             driver:    virtio-pci
114             dpdk_port_num: 1
115             local_ip: "152.16.40.19"
116             netmask:   "255.255.255.0"
117             local_mac:   "00:00:00:00:00:06"
118     routing_table:
119     - network: "152.16.100.20"
120       netmask: "255.255.255.0"
121       gateway: "152.16.100.20"
122       if: "xe0"
123     - network: "152.16.40.20"
124       netmask: "255.255.255.0"
125       gateway: "152.16.40.20"
126       if: "xe1"
127     nd_route_tbl:
128     - network: "0064:ff9b:0:0:0:0:9810:6414"
129       netmask: "112"
130       gateway: "0064:ff9b:0:0:0:0:9810:6414"
131       if: "xe0"
132     - network: "0064:ff9b:0:0:0:0:9810:2814"
133       netmask: "112"
134       gateway: "0064:ff9b:0:0:0:0:9810:2814"
135       if: "xe1"