diff options
Diffstat (limited to 'vsperf')
-rwxr-xr-x | vsperf | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -388,6 +388,28 @@ def main(): logger.error("No tests matched --test option or positional args. Done.") sys.exit(1) + # set dpdk, ovs and qemu paths accorfing to VNF and VSWITCH + if settings.getValue('VSWITCH').endswith('Vanilla'): + # settings paths for Vanilla + settings.setValue('OVS_DIR', (settings.getValue('OVS_DIR_VANILLA'))) + settings.setValue('QEMU_DIR', (settings.getValue('QEMU_DIR_VANILLA'))) + elif settings.getValue('VSWITCH').endswith('Vhost'): + if settings.getValue('VNF').endswith('Cuse'): + # settings paths for Cuse + settings.setValue('RTE_SDK', (settings.getValue('RTE_SDK_CUSE'))) + settings.setValue('OVS_DIR', (settings.getValue('OVS_DIR_CUSE'))) + settings.setValue('QEMU_DIR', (settings.getValue('QEMU_DIR_CUSE'))) + else: + # settings paths for VhostUser + settings.setValue('RTE_SDK', (settings.getValue('RTE_SDK_USER'))) + settings.setValue('OVS_DIR', (settings.getValue('OVS_DIR_USER'))) + settings.setValue('QEMU_DIR', (settings.getValue('QEMU_DIR_USER'))) + else: + # default - set to VHOST USER but can be changed during enhancement + settings.setValue('RTE_SDK', (settings.getValue('RTE_SDK_USER'))) + settings.setValue('OVS_DIR', (settings.getValue('OVS_DIR_USER'))) + settings.setValue('QEMU_DIR', (settings.getValue('QEMU_DIR_USER'))) + # create results directory if not os.path.exists(results_path): logger.info("Creating result directory: " + results_path) |