Magnetic orders and topological phases from f-d exchange in pyrochlore iridates