summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2025-02-04 07:40:36 -0500
committerGitHub <noreply@github.com>2025-02-04 07:40:36 -0500
commitf74fa9543bf66ec69c267099a4c3e045d58c94ba (patch)
tree6c706fe191b30df640e9d43e2966a631a280883b /bgpd
parent0ee27731493a3bd5f0a17d5e3236e304a82daafc (diff)
parent892704d07f5286464728720648ad392b485a9966 (diff)
Merge pull request #17992 from chiragshah6/fdev5
bgpd: fix route-distinguisher in vrf leak json cmd
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 6290e1e5b1..98021f7ef4 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -16691,9 +16691,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(