]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_vty.c
bgpd: Display useful values when using json for missing neighbor state
authorDonald Sharp <sharpd@nvidia.com>
Fri, 17 Jun 2022 17:43:30 +0000 (13:43 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 17 Jun 2022 17:43:30 +0000 (13:43 -0400)
commit1e592331cb87ba5ca5cca5f6635c35acd8d74bba
treeafbdd5fb955d9d2b9b9848146e72b8b3f3e56da8
parent38437392b9f66cdd02eca680c698c20ea759abce
bgpd: Display useful values when using json for missing neighbor state

When a peer has not established connection yet, these values:
`hostLocal`, `portLocal`, `hostForeign`, `portForeign` might
not have any values and json output will not display anything
for them.  Modify the code to display some nominal values in
this situation so that parsers are not surprised.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_vty.c