]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Adding BGP neighbor JSON output for neighbors never established a BGP adjacency
authorKarl Quan <kquan@nvidia.com>
Mon, 5 Dec 2022 16:06:36 +0000 (08:06 -0800)
committerKarl Quan <kquan@nvidia.com>
Mon, 5 Dec 2022 16:06:36 +0000 (08:06 -0800)
commit432e7e463ee4f7f07f246f08abb57981ea81b1f2
treea6d8817be76deb05a6ac5b8c5db921637ffadffc
parent78464691ee4121104336d528901ae3077e1ccc79
bgpd: Adding BGP neighbor JSON output for neighbors never established a BGP adjacency

Some keys are only present in the JSON data of BGP neighbors are only present if the peer is, or has previously been established.
While they are not present if the peer has never come up.

To keep the data structure aligned, the below keys are added also to the neighbors that BGP adjacency has never been established.
Values of the keys are all set to Unknown
    hostname:Unknown,
    nexthop:Unknown,
    nexthopGlobal:Unknown,
    nexthopLocal:Unknown,
    bgpConnection:Unknown,

Signed-off-by: Karl Quan <kquan@nvidia.com>
bgpd/bgp_vty.c