Enable PVP and PVVP deployments for Vanilla OVS
[vswitchperf.git] / conf / 04_vnf.conf
1 # Copyright 2015 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 # VNF configuration
17 # ############################
18 VNF_DIR = 'vnfs/'
19 VNF = 'QemuDpdkVhostUser'
20
21 # ############################
22 # Guest configuration
23 # ############################
24
25 # directory which is shared to QEMU guests. Useful for exchanging files
26 # between host and guest, VNF specific share will be created
27 # For 2 VNFs you may use ['/tmp/qemu0_share', '/tmp/qemu1_share']
28 GUEST_SHARE_DIR = ['/tmp/qemu0_share', '/tmp/qemu1_share']
29
30 # location of guest disk image
31 # For 2 VNFs you may use ['guest1.img', 'guest2.img']
32 GUEST_IMAGE = ['', '']
33
34 # username for guest image
35 GUEST_USERNAME = ''
36
37 # password for guest image
38 GUEST_PASSWORD = ''
39
40 # login username prompt for guest image
41 GUEST_PROMPT_LOGIN = ''
42
43 # login password prompt for guest image
44 GUEST_PROMPT_PASSWORD = ''
45
46 # standard prompt for guest image
47 GUEST_PROMPT = ''
48
49 # log file for qemu
50 LOG_FILE_QEMU = 'qemu.log'
51
52 # log file for all commands executed on guest(s)
53 # multiple guests will result in log files with the guest number appended
54 LOG_FILE_GUEST_CMDS = 'guest-cmds.log'
55
56 # ############################
57 # Executables
58 # ############################
59
60 QEMU_BIN = 'qemu-system-x86_64'
61
62 OVS_VAR_DIR = '/usr/local/var/run/openvswitch/'
63
64 # For 2 VNFs you may use ['00:00:00:00:00:01', '00:00:00:00:00:03']
65 GUEST_NET1_MAC = ['00:00:00:00:00:01', '00:00:00:00:00:03']
66 GUEST_NET2_MAC = ['00:00:00:00:00:02', '00:00:00:00:00:04']
67
68
69 # For 2 VNFs you may use ['00:04.0', '00:04.0']
70 GUEST_NET1_PCI_ADDRESS = ['00:04.0', '00:04.0']
71 GUEST_NET2_PCI_ADDRESS = ['00:05.0', '00:05.0']
72
73 GUEST_MEMORY = ['4096', '4096']
74
75 # test-pmd requires 2 VM cores
76 GUEST_SMP = ['2', '2']
77
78 # Host cores to use to affinitize the SMP cores of a QEMU instance
79 # For 2 VNFs you may use [(4,5), (6, 7)]
80 GUEST_CORE_BINDING = [(6, 7), (9, 10)]
81
82 GUEST_START_TIMEOUT = 120
83 GUEST_OVS_DPDK_DIR = '/root/ovs_dpdk'
84 OVS_DPDK_SHARE = '/mnt/ovs_dpdk_share'
85
86 # IP addresses to use for Vanilla OVS PVP testing
87 # Consider using RFC 2544/3330 recommended IP addresses for benchmark testing.
88 # Network: 198.18.0.0/15
89 # Netmask: 255.254.0.0
90 # Broadcast: 198.19.255.255
91 # First IP: 198.18.0.1
92 # Last IP: 198.19.255.254
93 # Hosts: 131070
94 #
95
96 # ARP entries for the IXIA ports and the bridge you are using:
97 VANILLA_TGEN_PORT1_IP = '1.1.1.10'
98 VANILLA_TGEN_PORT1_MAC = 'AA:BB:CC:DD:EE:FF'
99
100 VANILLA_TGEN_PORT2_IP = '1.1.2.10'
101 VANILLA_TGEN_PORT2_MAC = 'AA:BB:CC:DD:EE:F0'
102
103 VANILLA_BRIDGE_IP = ['1.1.1.5/16', '1.1.1.6/16']
104
105 VANILLA_NIC1_NAME = ['eth0', 'eth2']
106 VANILLA_NIC2_NAME = ['eth1', 'eth3']
107
108 VANILLA_NIC1_IP_CIDR = ['192.168.1.2/24', '192.168.1.4/24']
109 VANILLA_NIC2_IP_CIDR = ['192.168.1.3/24', '192.168.1.5/24']
110
111 VNF_AFFINITIZATION_ON = True