Skip to content

Commit

Permalink
OPENSHIFTP-237: iface wasn't trimmed of trailing spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Oct 18, 2024
1 parent c4c5afa commit 4886145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/4_pvs_support/templates/route-env.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ip route show | grep ${subnet} | grep -v via | awk '{print $3}' | uniq | while read IFACE
do
echo "$${IFACE} found"
cat << EOF | nmcli connection edit "$(nmcli -f Name connection | grep --color=never $${IFACE})"
cat << EOF | nmcli connection edit "System $${IFACE}"
goto ipv4
%{ for cidr in cidrs_ipv4 ~}
set routes ${cidr} ${gateway}
Expand All @@ -16,6 +16,6 @@ save
quit
EOF

nmcli connection up "$${IFACE}"
nmcli connection up "System $${IFACE}"
break
done

0 comments on commit 4886145

Please sign in to comment.