From 3702f84d9f86e9c091037c984e349823884a7d93 Mon Sep 17 00:00:00 2001 From: Anton Degtyarev Date: Wed, 14 Nov 2018 03:57:46 +0300 Subject: [PATCH] bgpd: add missing endline Missing endline was resulting in garbled output in vtysh in some cases, for example, when there were no peers configured and the user has issued "bgp disable-ebgp-connected-route-check" command. Signed-off-by: Anton Degtyarev --- bgpd/bgp_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index d8c34d2d31..f763d4b976 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -602,7 +602,7 @@ static int bgp_clear(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi, bgp->update_delay_over = 0; if (!found) - vty_out(vty, "%%BGP: No %s peer configured", + vty_out(vty, "%%BGP: No %s peer configured\n", afi_safi_print(afi, safi)); return CMD_SUCCESS; -- 2.39.5