From d2a5574d7032332734563fb5f3d00d3cb68433a1 Mon Sep 17 00:00:00 2001 From: Paul Bastide Date: Tue, 31 Oct 2023 10:39:55 -0400 Subject: [PATCH] OCTOPUS-526: iface on RHEL bastions aren't picked correctly and the routes don't load up after search Signed-off-by: Paul Bastide --- modules/4_pvs_support/templates/route-env.sh.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/4_pvs_support/templates/route-env.sh.tpl b/modules/4_pvs_support/templates/route-env.sh.tpl index ab73bd1..5d818bf 100644 --- a/modules/4_pvs_support/templates/route-env.sh.tpl +++ b/modules/4_pvs_support/templates/route-env.sh.tpl @@ -13,8 +13,7 @@ FOUND="$(nmcli -t -f ipv4.addresses connection show "$${IFACE}" | grep ${bastion if [ -n "$${FOUND}" ] then INT_IFACE="$${IFACE}" -fi -done +echo "$${INT_IFACE} found" cat << EOF | nmcli connection edit "$${INT_IFACE}" goto ipv4 @@ -25,4 +24,7 @@ save quit EOF -nmcli device up env3 +nmcli connection up "$${INT_IFACE}" +break +fi +done \ No newline at end of file