Skip to content

Commit

Permalink
bgpd: add missing endline
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
adeg committed Nov 14, 2018
1 parent ecec949 commit 3702f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3702f84

Please sign in to comment.