]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: don't sidestep vty code
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 11 Aug 2017 12:25:56 +0000 (14:25 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 11 Aug 2017 13:45:38 +0000 (15:45 +0200)
commit2cb5980f20bb642e60484a1647031cb6f013ddc3
tree6b63f1d1af42fccc46a103f43826a4271be67cfd
parent695bb8f0d144def36295bd5af8b14fbf064b97b8
bgpd: don't sidestep vty code

afi_header_vty_out is sidestepping the vty code, writing straight to the
output (either stdout or the obuf), which results in newline translation
not being performed.

Easiest fix is replacing it with a macro.  Longer-term, I have some old
code to add "prefaces" to the vty output, planning to dig that up.

Fixes: #949 ("bgpd show running doesn't show new lines")
Reported-by: Lou Berger <lberger@labn.net>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgpd.c