Y thats good option ...... to summary the route, but while advertiseing which SVI inter face should used like
router ospf 1
net 10.1.1.0 0.0.0.255 area 0 (Vlan 10)
net 10.1.2.0 0.0.0.255 area 0 (Vlan 20)
net 10.1.3.0 0.0.0.255 area 0 (Vlan 30)
net 10.1.4.0 0.0.0.255 area 0 (Vlan 40)
net 10.1.5.0 0.0.0.255 area 0 (Vlan 50)
passive interface default
no passive interface vlan 10(Router Vlan)
no passive interface vlan 20(Router Vlan)
exit
Here for redcy router is connected to Both L3 switch in different VLAN (Different Subnet)
And senario is Two router and two L3 switch
connected with redcy ......
And same in other L3 switch ......