From 3fab1876a35b967ae5afd94e1220d247c098acf3 Mon Sep 17 00:00:00 2001 From: tatanithin <113345721+tatanithin@users.noreply.github.com> Date: Mon, 13 Jan 2025 09:49:25 -0500 Subject: [PATCH] Update atdStartup.sh --- nested-labvm/services/atdStartup/atdStartup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nested-labvm/services/atdStartup/atdStartup.sh b/nested-labvm/services/atdStartup/atdStartup.sh index bb729d587..ef47c34f9 100644 --- a/nested-labvm/services/atdStartup/atdStartup.sh +++ b/nested-labvm/services/atdStartup/atdStartup.sh @@ -142,7 +142,12 @@ if [ -f "/opt/clab/scripts/containerlabs_setup.py" ] then bash /opt/clab/scripts/veth-connection.sh >> /opt/clab/scripts/log.txt fi - +os_name=$(grep -i '^NAME=' /etc/os-release | cut -d'=' -f2 | tr -d '"') +# Check if the OS name is AlmaLinux +if [[ "$os_name" == "AlmaLinux" ]]; then + sudo ip route del 192.168.0.0/24 dev vmgmt + sudo ip route add 192.168.0.0/25 dev vmgmt +fi # if cEOS Startup present, run it if [ -f "/opt/ceos/scripts/.ceos.txt" ]