Skip to content

Commit

Permalink
Merge pull request #2453 from trozet/bz1931617_backport_bond_static_ip
Browse files Browse the repository at this point in the history
Bug 1931617: OVS Config: fixes detecting bond NM files with static IP
  • Loading branch information
openshift-merge-robot committed Mar 23, 2021
2 parents 578e439 + 93c317e commit 788eb73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/common/_base/files/configure-ovs-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ contents:
if nmcli --fields ipv4.method,ipv6.method conn show $old_conn | grep manual; then
echo "Static IP addressing detected on default gateway connection: ${old_conn}"
# find and copy the old connection to get the address settings
if egrep -l --include=*.nmconnection $old_conn ${NM_CONN_PATH}/*; then
old_conn_file=$(egrep -l --include=*.nmconnection $old_conn ${NM_CONN_PATH}/*)
if egrep -l --include=*.nmconnection uuid=$old_conn ${NM_CONN_PATH}/*; then
old_conn_file=$(egrep -l --include=*.nmconnection uuid=$old_conn ${NM_CONN_PATH}/*)
cloned=false
else
echo "WARN: unable to find NM configuration file for conn: ${old_conn}. Attempting to clone conn"
Expand Down

0 comments on commit 788eb73

Please sign in to comment.