Skip to content

Commit

Permalink
Use env var passed from containerlab for IOL launch PID (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelemc authored Oct 21, 2024
1 parent 3e8578d commit 7f99b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cisco/iol/docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
exec /iol/iol.bin $IOL_PID -e $num_slots -s 0 -c config.txt -n 1024

0 comments on commit 7f99b39

Please sign in to comment.