summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-03-16 02:08:43 +0100
committerDonald Sharp <sharpd@nvidia.com>2024-10-29 19:11:06 +0100
commite2090bf4c6a60e98ee6a3e17a35a82848c517239 (patch)
treecf966d54400b2de88f940577f1d8792bf9e4edd9
parentbgpd: Optimize the usage of jhash (diff)
downloadfrr-e2090bf4c6a60e98ee6a3e17a35a82848c517239.tar.xz
frr-e2090bf4c6a60e98ee6a3e17a35a82848c517239.zip
bgpd: Further extend `show bgp attribute-info`
Fill out a bit more data about what is being held. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--bgpd/bgp_attr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 209dcd228..2280aa909 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",