diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-01-16 18:24:26 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-03-22 12:06:29 +0100 |
| commit | 084b31717010242f4d9f5f60775d482cc7d26975 (patch) | |
| tree | 19d9afe1d2a7747501f9b841b68a3d3d973955d8 /bgpd/bgp_labelpool.h | |
| parent | b314ae7eb4df558f30fea974aa94b712067f82a0 (diff) | |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_labelpool.h b/bgpd/bgp_labelpool.h index 9e984247d7..dc376c0abd 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 */ |
