Skip to content

Commit

Permalink
Merge pull request #3183 from jcaamano/release-4.9
Browse files Browse the repository at this point in the history
[release-4.9] Bug 2089763: configure-ovs: persist profiles after auto-connect has been set
  • Loading branch information
openshift-ci[bot] committed Jun 13, 2022
2 parents d8ba2a0 + 3b3e6b2 commit bd2557a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/common/_base/files/configure-ovs-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ contents:
}
persist_nm_conn_files() {
update_nm_conn_files br-ex phys0
copy_nm_conn_files "$NM_CONN_UNDERLAY"
if [ -f "$extra_bridge_file" ]; then
update_nm_conn_files br-ex1 phys1
copy_nm_conn_files "$NM_CONN_UNDERLAY"
fi
}
update_nm_conn_files() {
Expand Down Expand Up @@ -326,8 +331,6 @@ contents:
fi
configure_driver_options "${iface}"
update_nm_conn_files "$bridge_name" "$port_name"
persist_nm_conn_files
}
# Used to remove a bridge
Expand Down Expand Up @@ -587,6 +590,7 @@ contents:
activate_nm_conn ovs-if-phys1
activate_nm_conn ovs-if-br-ex1
fi
persist_nm_conn_files
elif [ "$1" == "OpenShiftSDN" ]; then
# Revert changes made by /usr/local/bin/configure-ovs.sh during SDN migration.
rollback_nm
Expand Down

0 comments on commit bd2557a

Please sign in to comment.