From: Donald Sharp Date: Sat, 16 Mar 2024 01:08:43 +0000 (-0400) Subject: bgpd: Further extend `show bgp attribute-info` X-Git-Tag: base_10.3~289^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e2090bf4c6a60e98ee6a3e17a35a82848c517239;p=matthieu%2Ffrr.git bgpd: Further extend `show bgp attribute-info` Fill out a bit more data about what is being held. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 209dcd2288..2280aa9097 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -967,8 +967,11 @@ static void attr_show_all_iterator(struct hash_bucket *bucket, struct vty *vty) "\n", attr->flag, attr->distance, attr->med, attr->local_pref, attr->origin, attr->weight, attr->label, sid, attr->aigp_metric); - vty_out(vty, "\taspath: %s Community: %s Large Community: %s\n", - aspath_print(attr->aspath), + vty_out(vty, + "\tnh_ifindex: %u nh_flags: %u distance: %u nexthop_global: %pI6 nexthop_local: %pI6 nexthop_local_ifindex: %u\n", + attr->nh_ifindex, attr->nh_flags, attr->distance, &attr->mp_nexthop_global, + &attr->mp_nexthop_local, attr->nh_lla_ifindex); + vty_out(vty, "\taspath: %s Community: %s Large Community: %s\n", aspath_print(attr->aspath), community_str(attr->community, false, false), lcommunity_str(attr->lcommunity, false, false)); vty_out(vty, "\tExtended Community: %s Extended IPv6 Community: %s\n",