generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPENSHIFTP-237: latest centos image uses incompatible network-scripts
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
- Loading branch information
Showing
4 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
################################################################ | ||
# Copyright 2024 - IBM Corporation. All rights reserved | ||
# SPDX-License-Identifier: Apache-2.0 | ||
################################################################ | ||
|
||
# sets up the interface routes | ||
INT_IFACE="" | ||
ip -o -f inet addr show | grep ${subnet} | awk '{print $$2}' | while read IFACE | ||
do | ||
echo "$${IFACE} found" | ||
cat << EOF | nmcli connection edit "$${IFACE}" | ||
goto ipv4 | ||
%{ for cidr in cidrs_ipv4 ~} | ||
set routes ${cidr} ${gateway} | ||
%{ endfor ~} | ||
save | ||
quit | ||
EOF | ||
|
||
nmcli connection up "$${IFACE}" | ||
break | ||
fi | ||
done |
This file was deleted.
Oops, something went wrong.