Print igp_metric in show route output even if AIGP is set
Sébastien PARISOT
sparisot at iliad-free.fr
Tue Aug 12 15:21:36 CEST 2025
Hello BIRD team!
This patches (for master branch) modifies the output of the show route CLI command for BGP routes to always print the IGP metric value. In current BIRD, the IGP metric is only displayed if the AIGP attribute is not set.
Example, current BIRD:
10.0.0.0/8 unicast [blabla] * (100/210) [AS12322i]
And with the patch:
10.0.0.0/8 unicast [blabla] * (100/10/210) [AS12322i]
Even with AIGP it can be useful to see the IGP metric for each routes to troubleshoot routing issues (BGP best path selection can still consider IGP metric for routes with identical AIGP value).
Thanks!
--
Sébastien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250812/930b80c0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-BGP-Always-print-igp_metric-in-show-route-output.patch
Type: text/x-patch
Size: 1295 bytes
Desc: 0001-BGP-Always-print-igp_metric-in-show-route-output.patch
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250812/930b80c0/attachment.bin>
More information about the Bird-users
mailing list