]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Further extend `show bgp attribute-info`
authorDonald Sharp <sharpd@nvidia.com>
Sat, 16 Mar 2024 01:08:43 +0000 (21:08 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 29 Oct 2024 18:11:06 +0000 (14:11 -0400)
Fill out a bit more data about what is being held.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_attr.c

index 209dcd2288309726c92e531b8862d6eeb91ae5cd..2280aa90976565d46ffd212442abf7acdec8400b 100644 (file)
@@ -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",