From 088bbb8cff4a84751198675b118f65fabf7ef672 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Wed, 16 Dec 2015 12:36:04 +0000 Subject: vnf: support of vloop_vnf VM Additional modifications are required to support vloop_vnf as a master VM image for PVP and PVVP deployments. Firewall is disabled directly by call of iptables to avoid dependency on distribution specific firewall handling. Default configuration values in 04_vnf.conf were set according to vloop_vnf to make its usage easy. Values are generic enough to work well also with other images. Parameters VANILLA_NICx_NAME and vanilla_nicx_name were renamed to GUEST_NICx_NAME and guest_nicx_name respectively, because they are used for all vswitch versions. Functionality of CLI options was fixed. Default values of GUEST_NICx_NAME were changed to work with vloop_vnf image. Bug with modification of TRAFFIC_DEFAULTS values has been fixed. Deep copy is used and l2 and l3 dictionaries are correctly updated to avoid issues. Qemu disc emulation has been set to SCSI again to avoid error messages related to non-functional DMA in syslog. Appropriate kernel modules were added into vloop_vnf to support scsi disk emulation during boot. Change-Id: I5901f454861f99d21cca03030d6d5468ab71a8af JIRA: VSPERF-133 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Brian Castelli Reviewed-by: Al Morton Reviewed-by: Gurpreet Singh Reviewed-by: Tv Rao --- conf/04_vnf.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'conf') diff --git a/conf/04_vnf.conf b/conf/04_vnf.conf index 2be96859..dc15fd15 100644 --- a/conf/04_vnf.conf +++ b/conf/04_vnf.conf @@ -47,19 +47,19 @@ GUEST_TIMEOUT = [180, 180] GUEST_LOOPBACK = ['testpmd', 'testpmd'] # username for guest image -GUEST_USERNAME = '' +GUEST_USERNAME = 'root' # password for guest image -GUEST_PASSWORD = '' +GUEST_PASSWORD = 'root' # login username prompt for guest image GUEST_PROMPT_LOGIN = '.* login:' # login password prompt for guest image -GUEST_PROMPT_PASSWORD = '' +GUEST_PROMPT_PASSWORD = 'Password: ' # standard prompt for guest image -GUEST_PROMPT = '' +GUEST_PROMPT = 'root.*#' # log file for qemu LOG_FILE_QEMU = 'qemu.log' @@ -74,11 +74,14 @@ LOG_FILE_GUEST_CMDS = 'guest-cmds.log' QEMU_BIN = os.path.join(QEMU_DIR, 'x86_64-softmmu/qemu-system-x86_64') +# For 2 VNFs you may use ['eth0', 'eth2'] +GUEST_NIC1_NAME = ['eth0', 'eth0'] +GUEST_NIC2_NAME = ['eth1', 'eth1'] + # For 2 VNFs you may use ['00:00:00:00:00:01', '00:00:00:00:00:03'] GUEST_NET1_MAC = ['00:00:00:00:00:01', '00:00:00:00:00:03'] GUEST_NET2_MAC = ['00:00:00:00:00:02', '00:00:00:00:00:04'] - # For 2 VNFs you may use ['00:04.0', '00:04.0'] GUEST_NET1_PCI_ADDRESS = ['00:04.0', '00:04.0'] GUEST_NET2_PCI_ADDRESS = ['00:05.0', '00:05.0'] @@ -115,9 +118,6 @@ VANILLA_TGEN_PORT2_MAC = 'AA:BB:CC:DD:EE:F0' VANILLA_BRIDGE_IP = ['1.1.1.5/16', '1.1.1.6/16'] -VANILLA_NIC1_NAME = ['eth1', 'eth3'] -VANILLA_NIC2_NAME = ['eth2', 'eth4'] - VANILLA_NIC1_IP_CIDR = ['192.168.1.2/24', '192.168.1.4/24'] VANILLA_NIC2_IP_CIDR = ['192.168.1.3/24', '192.168.1.5/24'] -- cgit 1.2.3-korg