From e3444ea668befe8932905820918c4b6b3f17fc11 Mon Sep 17 00:00:00 2001 From: Kaelem <62122480+kaelemc@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:14:40 +1300 Subject: [PATCH] Use env var passed from containerlab for IOL launch PID (#270) --- cisco/iol/docker/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cisco/iol/docker/entrypoint.sh b/cisco/iol/docker/entrypoint.sh index 6e397fe6..c0e57e88 100644 --- a/cisco/iol/docker/entrypoint.sh +++ b/cisco/iol/docker/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash -echo "Launching IOL" +echo "Launching IOL with PID" $IOL_PID # Clear ip addressing on eth0 (it 'belongs' to IOL now) ip addr flush dev eth0 @@ -18,4 +18,4 @@ max_eth=$(ls /sys/class/net | grep eth | grep -o -E '[0-9]+' | sort -n | tail -1 num_slots=$(( (max_eth + 4) / 4 )) # Start IOL -exec /iol/iol.bin 1 -e $num_slots -s 0 -c config.txt -n 1024 \ No newline at end of file +exec /iol/iol.bin $IOL_PID -e $num_slots -s 0 -c config.txt -n 1024