platform: adjust route weight before applying it to kernel
When applying the ECMP nexthops to kernel we need to decrease the value by one. This is also done by other tools like iproute2.
Fixes: 1bbdecf5 ('platform: manage ECMP routes')
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
When applying the ECMP nexthops to kernel we need to decrease the value by one. This is also done by other tools like iproute2.
Fixes: 1bbdecf5 ('platform: manage ECMP routes')