]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Add decoded notification code strings to JSON output
authorDinesh G Dutt <ddutt@cumulusnetworks.com>
Mon, 16 Jan 2017 14:24:09 +0000 (06:24 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 30 Jan 2017 18:40:53 +0000 (13:40 -0500)
commitcca1dda8bf5aca42aec577b2e156b5e56a2bc996
tree31d9f948749e160f5f80fb0cd94748d381ed7a0d
parent1a11782c408a60afb464fe232fc2e3fa1e298436
bgpd: Add decoded notification code strings to JSON output

Ticket: CM-14136
Reviewed By: CCR-5585
Testing Done: bgpmin

The JSON output of 'bgp neighbor show' lacked the decoded strings for
the last notification error code/subcode. Decoding these strings outside
quagga is painful, and then needs to match with any updates to the codes
from RFCs/drafts. Further, all apps that look to understanding this need
to then add their own decoders for these strings.

Just add the decoded strings to the JSON output as well. JSON key name
for this is 'lastNotificationReason'.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
bgpd/bgp_vty.c