I was a curious about the purpose of ‘igp_metric’ attribute while investigating this. It seems to only be used as a generic container attribute in route.h. Is there a reason that property is not exposed? Maybe ‘igp_cost’? :)
On Mar 22, 2019, at 15:10, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Fri, Mar 22, 2019 at 02:56:21PM -0500, Corban Johnson wrote:
If you want, i can send you patch to fix that.
That would be very helpful, thank you :)
Attached (untested).
It adds read-only integer property nh_cost to access that.
The name of the property is horrible (that is why the patch is not commited), i would be glad for a better idea. Unfortunately, 'igp_metric' cannot be used (as it represent the original property of OSPF routes, which is technically a different property with a different access code).
-- Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so." <igp_metric.patch>