Skip to content

Commit

Permalink
OCTOPUS-526: iface on RHEL bastions aren't picked correctly and the r…
Browse files Browse the repository at this point in the history
…outes don't load up after search

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Oct 31, 2023
1 parent 668f73e commit d2a5574
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/4_pvs_support/templates/route-env.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,4 +24,7 @@ save
quit
EOF

nmcli device up env3
nmcli connection up "$${INT_IFACE}"
break
fi
done

0 comments on commit d2a5574

Please sign in to comment.