How to do ECMP in OpenWrt

I want to setup equal-cost multipath (ECMP) in OpenWrt. I am not using MWAN3 because when a WAN interface goes down the route of that interface doesn't get flush from the routing table and my IPsec tunnel uses that WAN interface route (which is down) to building the tunnel.