Skip to content

Commit

Permalink
bgpd: fix compilation for rd all option
Browse files Browse the repository at this point in the history
Cherr-pick the upstream commit a111dd9.
This commit helps add support for "rd all" option
to evpn route show command.

This commit is temporary until commit fdeb5a8 is merged
into nvidia dev.

Signed-off-by: Chirag Shah <chirag@nvidia.com>
  • Loading branch information
chiragshah6 authored and donaldsharp committed Feb 6, 2023
1 parent 259143c commit 98a0b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bgpd/bgp_evpn_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,7 @@ static void evpn_show_route_rd_all_macip(struct vty *vty, struct bgp *bgp,
json_path = json_object_new_array();

route_vty_out_detail(vty, bgp, dest, pi, AFI_L2VPN,
SAFI_EVPN, RPKI_NOT_BEING_USED,
SAFI_EVPN, /* RPKI_NOT_BEING_USED, */
json_path);

if (json)
Expand Down
2 changes: 1 addition & 1 deletion bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -14579,7 +14579,7 @@ DEFUN (show_bgp_afi_vpn_rd_route,
if (!strcmp(argv[5]->arg, "all"))
return bgp_show_route(vty, NULL, argv[6]->arg, afi,
SAFI_MPLS_VPN, NULL, 0, BGP_PATH_SHOW_ALL,
RPKI_NOT_BEING_USED,
/* RPKI_NOT_BEING_USED,*/
use_json(argc, argv));

ret = str2prefix_rd(argv[5]->arg, &prd);
Expand Down

0 comments on commit 98a0b66

Please sign in to comment.