]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: add missing endline 3325/head
authorAnton Degtyarev <adeg47@gmail.com>
Wed, 14 Nov 2018 00:57:46 +0000 (03:57 +0300)
committerAnton Degtyarev <adeg47@gmail.com>
Wed, 14 Nov 2018 00:57:46 +0000 (03:57 +0300)
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 <anton@cumulusnetworks.com>
bgpd/bgp_vty.c

index d8c34d2d31493de2aabdfb28463dfe2cb66270ba..f763d4b976f5b23f7f47de74622e99180bcf41a5 100644 (file)
@@ -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;