Add replace_connection for of_config