Static routes with same metric

Hi,

I'm playing around with my Asus AX4200 with Openwrt and i had found something odd, it's not allowed to add several static routes to a specific IP address with the same metric.

I know , that can not be done with the default getaway, but it's allowed in other cases.

Of course linux + ip tool allows to do that:

ip -4 r
default via 172.31.99.26 dev br-lan.99 proto static
10.99.99.1 via 172.31.99.109 dev br-lan.99 proto static metric 10
10.99.99.1 via 172.31.88.109 dev br-lan.88 metric 10

Is this a luci limitation? Or the limitation it's located more deeper? And above all, why ?

Any idea or any clue or advice it's always become .

Maybe to give some context, i'm playing around with dynamic routing ( there are plenty of them within routing repo ) and in some context ( routes with the same metric ) are useful.

Uci/Luci limitation to be friendly for most users.
This definitely works for BGP routes received by FRR, I would strongly suggest you look at the FRR packages for OpenWRT if you want any sort of complex routing config. Only a few MB and very powerful.
Or alternatively you can use a script to run iproute2 commands directly.