diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-02-04 10:15:16 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-04 10:15:16 -0600 |
| commit | 7197b6c0535ab55d22fefe060ff1ad67cd60f4ae (patch) | |
| tree | cd871d84cc331c5d84e690749ce8bb98a81411d4 | |
| parent | 839495758d08a45e546a48f1ea5b126de5d8ddb1 (diff) | |
| parent | 87e70f81d8b98f13ece0ab0b496f60bdff2af14b (diff) | |
Merge pull request #17999 from FRRouting/mergify/bp/stable/10.0/pr-17992
bgpd: fix route-distinguisher in vrf leak json cmd (backport #17992)
| -rw-r--r-- | bgpd/bgp_vty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 8f6203f34c..ee99ecfe10 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -16110,9 +16110,9 @@ static int bgp_show_route_leak_vty(struct vty *vty, const char *name, json_object_new_string(vname)); json_object_object_add(json, "exportToVrfs", json_export_vrfs); - json_object_string_addf( - json, "routeDistinguisher", "%s", - bgp->vpn_policy[afi].tovpn_rd_pretty); + json_object_string_addf(json, "routeDistinguisher", + BGP_RD_AS_FORMAT(bgp->asnotation), + &bgp->vpn_policy[afi].tovpn_rd); dir = BGP_VPN_POLICY_DIR_TOVPN; if (bgp->vpn_policy[afi].rtlist[dir]) { ecom_str = ecommunity_ecom2str( |
