From 511854b7a8fe289603cb4475a39d713244846ebf Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Mon, 1 Aug 2016 18:48:06 +0300 Subject: Python3 support for Stateful daemon Python 3.5 support in ZMQ Verify ZMQ health in Stateful daemon Add get_trex_config() command to Stateful daemon Strip debug info on Python ZMQ .so files --- scripts/trex-cfg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/trex-cfg') diff --git a/scripts/trex-cfg b/scripts/trex-cfg index 44ef678c..02421001 100755 --- a/scripts/trex-cfg +++ b/scripts/trex-cfg @@ -65,6 +65,5 @@ fi # try to bind the ports from the configuration file (new DPDK) PARENT_ARGS="$0 $@" -if ! ./dpdk_setup_ports.py --parent "$PARENT_ARGS"; then - exit 1 -fi +(/usr/bin/python -V &> /dev/null && ./dpdk_setup_ports.py --parent "$PARENT_ARGS") || + (/usr/bin/python3 -V &> /dev/null && /usr/bin/python3 dpdk_setup_ports.py --parent "$PARENT_ARGS") || exit 1 -- cgit 1.2.3-korg