diff options
| author | Farid Mihoub <farid.mihoub@6wind.com> | 2023-06-08 15:37:10 +0200 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-02-28 09:34:34 +0000 |
| commit | 6b2cf2a1b79642a02c4f33a952cb25b426fa7f1f (patch) | |
| tree | 390a1b3dd69befa7c2cbdfce2521e418bd653754 | |
| parent | 5761af9b07466cbd157a133d9078e95478ee2c66 (diff) | |
bmp: fix vty_out for monitor afi loc-rib
"show run" displays BMP monitor AFI in upper case.
> bmp targets bmp1
> bmp monitor IPv4 unicast loc-rib
Display it in lower case.
> bmp targets bmp1
> bmp monitor ipv4 unicast loc-rib
Signed-off-by: Farid Mihoub <farid.mihoub@6wind.com>
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 3104d482e932c7a030d8a5e209ed33ec151953f7)
| -rw-r--r-- | bgpd/bgp_bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index 6a55432e14..1de48a072a 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -2766,7 +2766,7 @@ static int bmp_config_write(struct bgp *bgp, struct vty *vty) afi2str_lower(afi), safi2str(safi)); if (CHECK_FLAG(bt->afimon[afi][safi], BMP_MON_LOC_RIB)) vty_out(vty, " bmp monitor %s %s loc-rib\n", - afi2str(afi), safi2str(safi)); + afi2str_lower(afi), safi2str(safi)); } frr_each (bmp_listeners, &bt->listeners, bl) vty_out(vty, " \n bmp listener %pSU port %d\n", |
