From e2090bf4c6a60e98ee6a3e17a35a82848c517239 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 15 Mar 2024 21:08:43 -0400 Subject: [PATCH] bgpd: Further extend `show bgp attribute-info` Fill out a bit more data about what is being held. Signed-off-by: Donald Sharp --- bgpd/bgp_attr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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",