@@ -214,11 +214,9 @@ use_cni() {
214214 die " Testing debian w/ CNI networking currently not supported"
215215 fi
216216
217- msg " Unsetting NETWORK_BACKEND for all subsequent environments."
218- echo " export -n NETWORK_BACKEND" >> /etc/ci_environment
219- echo " unset NETWORK_BACKEND" >> /etc/ci_environment
220- export -n NETWORK_BACKEND
221- unset NETWORK_BACKEND
217+ msg " Forcing NETWORK_BACKEND=cni for all subsequent environments."
218+ echo " NETWORK_BACKEND=cni" >> /etc/ci_environment
219+ export NETWORK_BACKEND=cni
222220 # While it's possible a user may want both installed, for CNI CI testing
223221 # purposes we only care about backward-compatibility, not forward.
224222 # If both CNI & netavark are present, in some situations where --root
@@ -250,9 +248,11 @@ use_cni() {
250248use_netavark () {
251249 req_env_vars OS_RELEASE_ID PRIOR_FEDORA_NAME DISTRO_NV
252250 local magickind repokind
253- msg " Forcing NETWORK_BACKEND=netavark for all subsequent environments."
254- echo " NETWORK_BACKEND=netavark" >> /etc/ci_environment
255- export NETWORK_BACKEND=netavark # needed for install_test_configs()
251+ msg " Unsetting NETWORK_BACKEND for all subsequent environments."
252+ echo " export -n NETWORK_BACKEND" >> /etc/ci_environment
253+ echo " unset NETWORK_BACKEND" >> /etc/ci_environment
254+ export -n NETWORK_BACKEND
255+ unset NETWORK_BACKEND
256256 msg " Removing any/all CNI configuration"
257257 showrun rm -rvf /etc/cni/net.d/*
258258 # N/B: The CNI packages are still installed and available. This is
0 commit comments