Spirent Support for Continuous Traffic
[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 # guarding timer for VM start up
35 # For 2 VNFs you may use [180, 180]
36 GUEST_TIMEOUT = [180, 180]
37
38 # packet forwarding mode: io|mac|mac_retry|macswap|flowgen|rxonly|txonly|csum|icmpecho
39 GUEST_TESTPMD_FWD_MODE = 'csum'
40
41 # guest loopback application method; supported options are:
42 #       'testpmd'       - testpmd from dpdk will be built and used
43 #       'l2fwd'         - l2fwd module provided by Huawei will be built and used
44 #       'linux_bridge'  - linux bridge will be configured
45 #       'buildin'       - nothing will be configured by vsperf; VM image must
46 #                         ensure traffic forwarding between its interfaces
47 # This configuration option can be overridden by CLI SCALAR option
48 # guest_loopback, e.g. --test-params "guest_loopback=l2fwd"
49 # For 2 VNFs you may use ['testpmd', 'l2fwd']
50 GUEST_LOOPBACK = ['testpmd', 'testpmd']
51
52 # username for guest image
53 GUEST_USERNAME = 'root'
54
55 # password for guest image
56 GUEST_PASSWORD = 'root'
57
58 # login username prompt for guest image
59 GUEST_PROMPT_LOGIN = '.* login:'
60
61 # login password prompt for guest image
62 GUEST_PROMPT_PASSWORD = 'Password: '
63
64 # standard prompt for guest image
65 GUEST_PROMPT = 'root.*#'
66
67 # log file for qemu
68 LOG_FILE_QEMU = 'qemu.log'
69
70 # log file for all commands executed on guest(s)
71 # multiple guests will result in log files with the guest number appended
72 LOG_FILE_GUEST_CMDS = 'guest-cmds.log'
73
74 # ############################
75 # Executables
76 # ############################
77
78 QEMU_BIN = os.path.join(QEMU_DIR, 'x86_64-softmmu/qemu-system-x86_64')
79
80 # For 2 VNFs you may use ['eth0', 'eth2']
81 GUEST_NIC1_NAME = ['eth0', 'eth0']
82 GUEST_NIC2_NAME = ['eth1', 'eth1']
83
84 # For 2 VNFs you may use ['00:00:00:00:00:01', '00:00:00:00:00:03']
85 GUEST_NET1_MAC = ['00:00:00:00:00:01', '00:00:00:00:00:03']
86 GUEST_NET2_MAC = ['00:00:00:00:00:02', '00:00:00:00:00:04']
87
88 # For 2 VNFs you may use ['00:04.0', '00:04.0']
89 GUEST_NET1_PCI_ADDRESS = ['00:04.0', '00:04.0']
90 GUEST_NET2_PCI_ADDRESS = ['00:05.0', '00:05.0']
91
92 GUEST_MEMORY = ['4096', '4096']
93
94 # test-pmd requires 2 VM cores
95 GUEST_SMP = ['2', '2']
96
97 # Host cores to use to affinitize the SMP cores of a QEMU instance
98 # For 2 VNFs you may use [(4,5), (6, 7)]
99 GUEST_CORE_BINDING = [(6, 7), (9, 10)]
100
101 GUEST_START_TIMEOUT = 120
102 GUEST_OVS_DPDK_DIR = '/root/ovs_dpdk'
103 OVS_DPDK_SHARE = '/mnt/ovs_dpdk_share'
104
105 # IP addresses to use for Vanilla OVS PVP testing
106 # Consider using RFC 2544/3330 recommended IP addresses for benchmark testing.
107 # Network: 198.18.0.0/15
108 # Netmask: 255.254.0.0
109 # Broadcast: 198.19.255.255
110 # First IP: 198.18.0.1
111 # Last IP: 198.19.255.254
112 # Hosts: 131070
113 #
114
115 # ARP entries for the IXIA ports and the bridge you are using:
116 VANILLA_TGEN_PORT1_IP = '1.1.1.10'
117 VANILLA_TGEN_PORT1_MAC = 'AA:BB:CC:DD:EE:FF'
118
119 VANILLA_TGEN_PORT2_IP = '1.1.2.10'
120 VANILLA_TGEN_PORT2_MAC = 'AA:BB:CC:DD:EE:F0'
121
122 VANILLA_BRIDGE_IP = ['1.1.1.5/16', '1.1.1.6/16']
123
124 VANILLA_NIC1_IP_CIDR = ['192.168.1.2/24', '192.168.1.4/24']
125 VANILLA_NIC2_IP_CIDR = ['192.168.1.3/24', '192.168.1.5/24']
126
127 VNF_AFFINITIZATION_ON = True