diff --git a/Dockerfile-trex b/Dockerfile-trex index 471e0ef..bb043ef 100644 --- a/Dockerfile-trex +++ b/Dockerfile-trex @@ -1,6 +1,6 @@ -FROM quay.io/centos/centos:8 +FROM quay.io/centos/centos:stream8 -ARG TREX_VERSION=2.87 +ARG TREX_VERSION=2.95 ENV TREX_VERSION ${TREX_VERSION} # install requirements diff --git a/pods/dpdk/trex/trex.yaml b/pods/dpdk/trex/trex.yaml index 16c8dca..69cdfce 100644 --- a/pods/dpdk/trex/trex.yaml +++ b/pods/dpdk/trex/trex.yaml @@ -13,7 +13,9 @@ data: trex_cfg.yaml : | - port_limit: 2 version: 2 - interfaces: ["${PCIDEVICE_OPENSHIFT_IO_DPDK_NIC_1}","${PCIDEVICE_OPENSHIFT_IO_DPDK_NIC_2}"] + interfaces: + - ${PCIDEVICE_OPENSHIFT_IO_DPDK_NIC_1} + - ${PCIDEVICE_OPENSHIFT_IO_DPDK_NIC_2} port_bandwidth_gb: ${PORT_BANDWIDTH_GB} port_info: - ip: 10.10.10.2 @@ -300,4 +302,4 @@ spec: name: trex-tests - emptyDir: medium: HugePages - name: hugepages \ No newline at end of file + name: hugepages diff --git a/scripts/create-trex-config.sh b/scripts/create-trex-config.sh index 168678a..4778676 100755 --- a/scripts/create-trex-config.sh +++ b/scripts/create-trex-config.sh @@ -17,7 +17,7 @@ done CPU="${CPU:1}" echo $CPU -NODE=`lscpu | grep ${MASTER} | awk '/node0/{print "0"}{print "1"}'` +NODE=`lscpu | grep ${MASTER}, | awk '/node0/{print "0"}{print "1"}'` export SOCKET="0" if [[ ${NODE} -eq 1 ]] then