summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_labelpool.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-01-16 18:24:26 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-05-09 21:00:57 +0200
commit6483c4d37bc6bece29ab581b6708651ec2b62800 (patch)
tree59d820c9655e573e2b4f18f458ecc81d60658cf7 /bgpd/bgp_labelpool.h
parentbgpd: update time of last change when label nexthop entry changed (diff)
downloadfrr-6483c4d37bc6bece29ab581b6708651ec2b62800.tar.xz
frr-6483c4d37bc6bece29ab581b6708651ec2b62800.zip
bgpd: add 'show bgp label-nexthop [detail]' command
The following command is made available to list the labels allocated per-nexthop, along with the paths registered to it. > # show bgp vrf vrf1 label-nexthop > Current BGP label nexthop cache for IP, VRF vrf1 > 192.0.2.11, label 20 #paths 3 > if r1-eth1 > Last update: Mon Jan 16 18:52:11 2023 > 192.0.2.12, label 17 #paths 2 > if r1-eth1 > Last update: Mon Jan 16 18:52:08 2023 > 192.0.2.14, label 18 #paths 1 > if r1-eth1 > Last update: Mon Jan 16 18:52:07 2023 > 192.168.255.13, label 19 #paths 1 > if r1-eth2 > Last update: Mon Jan 16 18:52:10 2023 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_labelpool.h')
-rw-r--r--bgpd/bgp_labelpool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_labelpool.h b/bgpd/bgp_labelpool.h
index ee80aad45..b33527186 100644
--- a/bgpd/bgp_labelpool.h
+++ b/bgpd/bgp_labelpool.h
@@ -92,4 +92,5 @@ bgp_label_per_nexthop_new(struct bgp_label_per_nexthop_cache_head *tree,
struct bgp_label_per_nexthop_cache *
bgp_label_per_nexthop_find(struct bgp_label_per_nexthop_cache_head *tree,
struct prefix *nexthop);
+void bgp_label_per_nexthop_init(void);
#endif /* _FRR_BGP_LABELPOOL_H */