]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix route-distinguisher in vrf leak json cmd 17998/head
authorChirag Shah <chirag@nvidia.com>
Mon, 3 Feb 2025 20:00:41 +0000 (12:00 -0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 4 Feb 2025 12:41:48 +0000 (12:41 +0000)
commit4db6d865b97b19c2ddc1f08a836647443469627e
tree6a720341e6ccae0ce7553f54914d29ec8c73b3a2
parentb56de28f94ab0cf4b917d87ddd4de206e7e85190
bgpd: fix route-distinguisher in vrf leak json cmd

For auto configured value RD value comes as NULL,
switching back to original change will ensure to cover
for both auto and user configured RD value in JSON.

tor-11# show bgp vrf blue ipv4 unicast route-leak json
{
  "vrf":"blue",
  "afiSafi":"ipv4Unicast",
  "importFromVrfs":[
    "purple"
  ],
  "importRts":"10.10.3.11:6",
  "exportToVrfs":[
    "purple"
  ],
  "routeDistinguisher":"(null)", <<<<<
  "exportRts":"10.10.3.11:10"
}

Signed-off-by: Chirag Shah <chirag@nvidia.com>
(cherry picked from commit 892704d07f5286464728720648ad392b485a9966)
bgpd/bgp_vty.c