Merge pull request #17992 from chiragshah6/fdev5

bgpd: fix route-distinguisher in vrf leak json cmd
This commit is contained in:
Russ White 2025-02-04 07:40:36 -05:00 committed by GitHub
commit f74fa9543b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16691,9 +16691,9 @@ static int bgp_show_route_leak_vty(struct vty *vty, const char *name,
json_object_new_string(vname)); json_object_new_string(vname));
json_object_object_add(json, "exportToVrfs", json_object_object_add(json, "exportToVrfs",
json_export_vrfs); json_export_vrfs);
json_object_string_addf( json_object_string_addf(json, "routeDistinguisher",
json, "routeDistinguisher", "%s", BGP_RD_AS_FORMAT(bgp->asnotation),
bgp->vpn_policy[afi].tovpn_rd_pretty); &bgp->vpn_policy[afi].tovpn_rd);
dir = BGP_VPN_POLICY_DIR_TOVPN; dir = BGP_VPN_POLICY_DIR_TOVPN;
if (bgp->vpn_policy[afi].rtlist[dir]) { if (bgp->vpn_policy[afi].rtlist[dir]) {
ecom_str = ecommunity_ecom2str( ecom_str = ecommunity_ecom2str(