aboutsummaryrefslogtreecommitdiffstats
path: root/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/docker-entrypoint.sh')
-rwxr-xr-xtools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/docker-entrypoint.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/docker-entrypoint.sh b/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/docker-entrypoint.sh
new file mode 100755
index 00000000..bd3b0284
--- /dev/null
+++ b/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/docker-entrypoint.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+set -e
+
+echo "DPDK_SAMPLE_APP is set as: $DPDK_SAMPLE_APP"
+
+if [[ $DPDK_SAMPLE_APP == l2fwd ]] ; then
+ echo "Calling: l2fwd"
+ exec "l2fwd"
+elif [[ $DPDK_SAMPLE_APP == l3fwd ]] ; then
+ echo "Calling: l3fwd"
+ exec "l3fwd"
+elif [[ $DPDK_SAMPLE_APP == testpmd ]] ; then
+ echo "Calling: testpmd"
+ exec "testpmd"
+else
+ echo "Net set so using default - Calling: $@"
+ exec "$@"
+fi