frrouting/bgpd
Sindhu Parvathi Gopinathan 71c54fad41 bgpd: correction in json output structure for no data case
Problem:

The VTYSH JSON output is not in the proper format when bgp l2vpn-evpn
information is missing or not populated for a given vni-id. This results
in a malformed JSON structure, which causes a parsing error.

Fix:
Corrected the JSON output structure generated during command execution
to properly handle cases where no bgp l2vpn-evpn data is available for a
given vni-id.

Before Fix:

```
{}
{
}
```

After Fix:

```
{
}

```

Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
(cherry picked from commit a8f1785c2b)
2025-12-16 13:10:38 +00:00
..
rfapi Merge pull request #19933 from FRRouting/mergify/bp/stable/10.4/pr-19927 2025-11-02 07:39:41 -05:00
rfp-example *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
.gitignore
bgp_addpath.c *: Allow returns to work with --enable-undefined-behavior 2025-04-28 14:05:28 -04:00
bgp_addpath.h Revert "bgpd: Handle Addpath capability using dynamic capabilities" 2025-01-25 20:51:16 +02:00
bgp_addpath_types.h bgpd: Implement neighbor X addpath-tx-best-selected command 2023-06-07 22:27:29 +03:00
bgp_advertise.c bgpd: fix labels in adj-rib-in 2024-06-05 13:11:29 +02:00
bgp_advertise.h bgpd: fix label in adj-rib-out 2024-06-05 13:11:29 +02:00
bgp_aspath.c bgpd: free json objects in error paths 2025-07-10 07:06:16 +00:00
bgp_aspath.h bgpd: Do not advertise aggregate routes to contributing ASes 2025-01-31 09:43:00 +02:00
bgp_attr.c bgpd: Crash due to usage of freed up evpn_overlay attr 2025-10-29 08:05:55 +00:00
bgp_attr.h bgpd: Crash due to usage of freed up evpn_overlay attr 2025-10-29 08:05:55 +00:00
bgp_attr_evpn.c bgpd: changes for code maintainability 2024-09-18 11:24:19 +05:30
bgp_attr_evpn.h bgpd: Move evpn_overlay to a pointer 2024-08-11 13:59:13 +03:00
bgp_bfd.c bgpd: Add Hold Time(r) for BFD strict mode 2025-05-28 11:15:03 +03:00
bgp_bfd.h bgpd: Add neighbor X bfd strict command 2025-05-09 10:23:39 +03:00
bgp_bmp.c Merge pull request #18843 from pguibert6WIND/bmp_imported_vrf_at_reconnect 2025-05-23 10:24:06 -05:00
bgp_bmp.h bgpd: add sync for monitored afi/safi of imported bgps 2025-01-07 15:35:32 +01:00
bgp_btoa.c bgpd: changes for code maintainability 2024-09-18 11:24:19 +05:30
bgp_clist.c bgpd: fix expanded extcomm list delete 2025-11-01 22:04:49 +02:00
bgp_clist.h *: make regex_t opaque for API isolation 2025-05-25 00:11:06 +02:00
bgp_community.c bgpd: changes for code maintainability 2024-09-10 10:37:04 +05:30
bgp_community.h bgpd: Remove deprecated COMMUNITY_INTERNET community 2023-08-03 17:12:19 +03:00
bgp_community_alias.c bgpd: Optimize the way parsing communities if no community alias exists 2024-11-18 23:29:53 +02:00
bgp_community_alias.h bgpd: Optimize the way parsing communities if no community alias exists 2024-11-18 23:29:53 +02:00
bgp_conditional_adv.c bgpd,zebra: remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
bgp_conditional_adv.h
bgp_damp.c bgpd: Rename bgp_path_info_delete to bgp_path_info_mark_for_delete 2025-05-15 12:08:34 -04:00
bgp_damp.h bgpd: Pass the right reuse_list when handling it via bgp_reuse_timer thread 2024-05-03 09:30:33 +03:00
bgp_debug.c bgpd: Implement BGP Next Hop Dependent Characteristics Attribute 2025-05-10 20:20:40 +03:00
bgp_debug.h bgpd: add debugging command for route aggregation 2025-01-07 22:52:41 -08:00
bgp_dump.c bgpd,zebra: remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
bgp_dump.h
bgp_ecommunity.c bgpd: Fix extended community check for IP non-transitive type 2025-07-03 17:11:23 +00:00
bgp_ecommunity.h bgpd: Fix extended community check for IP non-transitive type 2025-07-03 17:11:23 +00:00
bgp_encap_tlv.c
bgp_encap_tlv.h
bgp_encap_types.h
bgp_errors.c Revert "bgpd: store bgp link-state prefixes" 2023-10-10 16:45:00 -04:00
bgp_errors.h Revert "bgpd: store bgp link-state prefixes" 2023-10-10 16:45:00 -04:00
bgp_evpn.c bgpd: Check L3VNI status before adv evpn vrf routes 2025-10-31 20:27:09 +00:00
bgp_evpn.h bgpd: backpressure - Optimize EVPN L3VNI remote routes processing 2024-12-09 08:46:16 -08:00
bgp_evpn_mh.c bgpd: EVPN-MH fix ES-EVI memleak during shutdown 2025-10-23 07:23:04 +00:00
bgp_evpn_mh.h bgpd: fix evpn mh esi flap remove local routes 2024-10-14 10:09:57 -07:00
bgp_evpn_private.h bgpd: fix routemap evpn type-5 default route check 2025-10-31 20:25:59 +00:00
bgp_evpn_vty.c bgpd: correction in json output structure for no data case 2025-12-16 13:10:38 +00:00
bgp_evpn_vty.h
bgp_filter.c *: make regex_t opaque for API isolation 2025-05-25 00:11:06 +02:00
bgp_filter.h *: make regex_t opaque for API isolation 2025-05-25 00:11:06 +02:00
bgp_flowspec.c bgpd: flowspec: remove sizelimit check applied to the wrong length field (issue 18557) 2025-04-04 13:29:02 +02:00
bgp_flowspec.h bgpd: Treat withdraw variable as a bool 2023-04-06 17:41:32 -04:00
bgp_flowspec_private.h bgpd: flowspec: remove sizelimit check applied to the wrong length field (issue 18557) 2025-04-04 13:29:02 +02:00
bgp_flowspec_util.c bgpd: changes for code maintainability 2024-09-26 14:53:54 +05:30
bgp_flowspec_util.h
bgp_flowspec_vty.c bgpd: fix use single whitespace when displaying flowspec entries 2024-11-26 14:22:13 +01:00
bgp_fsm.c bgpd: Add Hold Time(r) for BFD strict mode 2025-05-28 11:15:03 +03:00
bgp_fsm.h bgpd: Fix wrong pthread event cancelling 2024-10-24 21:01:26 -04:00
bgp_io.c bgpd,zebra: remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
bgp_io.h bgpd: Modify bgp to handle packet events in a FIFO 2025-03-25 09:10:46 -04:00
bgp_keepalives.c Revert "bgpd: Make keepalive pthread be connection based." 2025-03-06 20:50:41 -05:00
bgp_keepalives.h bgpd: make bgp_keepalives_on|off connection oriented 2023-09-10 08:31:25 -04:00
bgp_label.c bgpd: clean up variable-shadowing compiler warnings 2025-04-08 14:41:27 -04:00
bgp_label.h bgpd: Remove unused defines from bgp_label.h 2025-03-26 08:50:06 +02:00
bgp_labelpool.c bgpd: Fix crash in bgp_labelpool 2025-02-10 12:09:59 -05:00
bgp_labelpool.h bgpd: Fix crash in bgp_labelpool 2025-02-10 12:09:59 -05:00
bgp_lcommunity.c bgpd: Fix lcom->str string length to correctly cover aliases 2023-04-20 16:51:56 -04:00
bgp_lcommunity.h
bgp_mac.c bgpd: Skip EVPN MAC processing for non-EVPN peers 2025-04-02 11:48:42 -07:00
bgp_mac.h
bgp_main.c *: Convert remaining noreturn to our FRR_NORETURN macro 2025-05-15 18:23:14 -04:00
bgp_memory.c bgpd: Implement BGP Next Hop Dependent Characteristics Attribute 2025-05-10 20:20:40 +03:00
bgp_memory.h bgpd: Implement BGP Next Hop Dependent Characteristics Attribute 2025-05-10 20:20:40 +03:00
bgp_mpath.c bgpd: Remove linklist.h inclusion in bgp_mpath.c 2025-05-12 09:06:45 -04:00
bgp_mpath.h bgpd: Remove unused bgp_mp_dmed_deselect function 2024-10-02 10:55:32 -04:00
bgp_mplsvpn.c bgpd: Do not override a specified rd 2025-10-13 16:29:13 +03:00
bgp_mplsvpn.h bgpd: Add support for BGP to use SRv6 SID in an explicit way 2025-05-13 06:44:22 +00:00
bgp_mplsvpn_snmp.c bgpd: clean up variable-shadowing compiler warnings 2025-04-08 14:41:27 -04:00
bgp_mplsvpn_snmp.h
bgp_network.c bgpd: Allow proper shutdown of bgp dynamic peers in rare case 2025-11-26 13:14:28 +00:00
bgp_network.h bgpd: Only update peer connection information when needed 2025-01-10 10:07:11 -05:00
bgp_nexthop.c Merge pull request #17976 from enkechen-panw/check-hostroute 2025-06-03 08:05:50 -04:00
bgp_nexthop.h bgpd: do not accept a host route that matches a local address 2025-02-04 15:28:39 -08:00
bgp_nhc.c bgpd: Implement BGP Next Hop Dependent Characteristics Attribute 2025-05-10 20:20:40 +03:00
bgp_nhc.h bgpd: Put local BGP ID when sending NNHN TLV for NH characteristic 2025-10-24 09:00:30 +03:00
bgp_nhg.c bgpd: move l3nhg functions in separate bgp_nhg.[ch] file 2023-12-11 21:03:33 +01:00
bgp_nhg.h bgpd: move l3nhg functions in separate bgp_nhg.[ch] file 2023-12-11 21:03:33 +01:00
bgp_nht.c bgpd: Fix crash due to dangling pointer in bnc nht_info 2025-08-18 15:09:26 +00:00
bgp_nht.h bgpd: fix check validity of a VPN SRv6 route with modified nexthop 2025-03-24 09:17:01 +01:00
bgp_open.c bgpd: Try to handle software version capability with the new encoding format 2025-12-09 05:18:28 +02:00
bgp_open.h bgpd: Implement Link-Local Next Hop capability 2025-01-17 16:48:32 +02:00
bgp_packet.c bgpd: Check length for dynamic capability (software version new encoding) 2025-12-09 05:18:33 +02:00
bgp_packet.h bgpd: batch peer connection error clearing 2025-03-12 12:42:06 -04:00
bgp_pbr.c bgpd: fix bgp_pbr_or_filter memory leaks 2025-04-14 13:52:02 +02:00
bgp_pbr.h bgpd: clean up variable-shadowing compiler warnings 2025-04-08 14:41:27 -04:00
bgp_rd.c
bgp_rd.h bgpd: Optimize memory for rd_ip struct 2024-01-31 11:29:30 +02:00
bgp_regex.c *: make regex_t opaque for API isolation 2025-05-25 00:11:06 +02:00
bgp_regex.h *: make regex_t opaque for API isolation 2025-05-25 00:11:06 +02:00
bgp_route.c bgpd: fix labeled unicast inbound policy lookup 2025-12-01 16:39:31 +02:00
bgp_route.h bgpd: Rename bgp_path_info_delete to bgp_path_info_mark_for_delete 2025-05-15 12:08:34 -04:00
bgp_routemap.c bgpd: clean up coverity warnings in bgp_routemap.c 2025-12-01 14:58:27 +00:00
bgp_routemap_nb.c bgpd: add 'match extcommunity-count' command to restrict comm count 2025-02-27 22:25:52 +01:00
bgp_routemap_nb.h bgpd: add 'match extcommunity-count' command to restrict comm count 2025-02-27 22:25:52 +01:00
bgp_routemap_nb_config.c bgpd: clean up variable-shadowing compiler warnings 2025-04-08 14:41:27 -04:00
bgp_rpki.c bgpd,zebra: remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
bgp_rpki.h bgpd: create cache server socket in vrf 2024-01-18 13:22:19 +01:00
bgp_script.c bgpd: su_remote and su_local are properties of the connection 2025-01-10 10:07:11 -05:00
bgp_script.h lib, bgpd: use forward-refs to remove bgp header from lib header 2025-06-05 10:15:52 -04:00
bgp_snmp.c bgpd, doc: add bgp snmp traps rfc4382 command 2024-08-11 19:28:50 +00:00
bgp_snmp.h bgpd: add [no] bgp snmp traps bgp4-mibv2 command 2023-10-24 17:16:47 +02:00
bgp_snmp_bgp4.c bgpd: su_remote and su_local are properties of the connection 2025-01-10 10:07:11 -05:00
bgp_snmp_bgp4.h bgpd: add snmp traps for bgp4-mibv2 2023-10-24 17:16:47 +02:00
bgp_snmp_bgp4v2.c bgpd: su_remote and su_local are properties of the connection 2025-01-10 10:07:11 -05:00
bgp_snmp_bgp4v2.h bgpd: add snmp traps for bgp4-mibv2 2023-10-24 17:16:47 +02:00
bgp_table.c bgpd: fix weird formatting in a function 2025-09-17 14:05:12 +00:00
bgp_table.h Merge pull request #17619 from donaldsharp/bgp_metaq_upstream 2024-12-20 13:59:15 -06:00
bgp_trace.c *: Add missing SPDX-License-Identifier for some .c/.h files 2024-03-21 16:46:58 +02:00
bgp_trace.h bgpd: Fix compilation error with using TP_ARGS 2025-07-28 08:43:47 +00:00
bgp_updgrp.c bgpd,zebra: remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
bgp_updgrp.h bgpd: remove unused BATTR_REFLECTED for rmap_change_flags 2025-01-14 08:46:54 -08:00
bgp_updgrp_adv.c bgpd: Ensure addpath does not withdraw selected route in some situations 2025-07-28 11:41:41 +00:00
bgp_updgrp_packet.c bgpd: Simplify the usage of ll_nexthop_only variable 2025-07-29 19:17:58 +00:00
bgp_vnc_types.h
bgp_vpn.c bgpd: Fix display when using missing-as-worst 2024-04-15 12:33:53 -04:00
bgp_vpn.h
bgp_vty.c bgpd: fix labeled-unicast output 2025-12-01 16:40:29 +02:00
bgp_vty.h bgpd: Fix showing default timers bgp x y 2025-01-09 23:56:31 +02:00
bgp_zebra.c bgpd: Extract link bandwidth value from extcommunity before using for WCMP 2025-07-10 16:33:18 +00:00
bgp_zebra.h bgpd: unify the type/subtype check for announcing to zebra 2025-07-03 10:26:23 +00:00
bgpd.c bgpd: Fix maximum-prefix session recovery for peers and peer-groups 2025-11-20 09:06:27 +02:00
bgpd.h bgpd: Do not override a specified rd 2025-10-13 16:29:13 +03:00
Makefile
subdir.am bgpd: Implement BGP Next Hop Dependent Characteristics Attribute 2025-05-10 20:20:40 +03:00