Correcting team config JSON format
@@ -205,10 +205,9 @@ contents:
fi
# use ${extra_phys_args[@]+"${extra_phys_args[@]}"} instead of ${extra_phys_args[@]} to be compatible with bash 4.2 in RHEL7.9
- extra_args=${extra_phys_args[@]+"${extra_phys_args[@]}"}
if ! nmcli connection show ovs-if-phys0 &> /dev/null; then
nmcli c add type ${iface_type} conn.interface ${iface} master ovs-port-phys0 con-name ovs-if-phys0 \
- connection.autoconnect-priority 100 802-3-ethernet.mtu ${iface_mtu} ${extra_args}
+ connection.autoconnect-priority 100 802-3-ethernet.mtu ${iface_mtu} ${extra_phys_args[@]+"${extra_phys_args[@]}"}
fi
# Get the new connection uuid
