From cf102f0c9e51251798af1aa3b164e5fb385b49b4 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 8e7f9bfa84f9..0aa1af65c065 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -909,6 +909,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, + "\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 Extended Community: %s Large Community: %s\n", aspath_print(attr->aspath),