]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix show run of network route-distinguisher
authorLouis Scalbert <louis.scalbert@6wind.com>
Tue, 16 Apr 2024 14:41:51 +0000 (16:41 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Tue, 23 Apr 2024 08:39:21 +0000 (10:39 +0200)
commit3d3a138f5a177a2ef5996c17c76c4f7778f9c3aa
tree27e8294820aab93a8a3501269caa572d5949b441
parent7ba58e97ff523ea655406a9e636958cb97c2d098
bgpd: fix show run of network route-distinguisher

Route-distinguisher (RD) is not printed properly in show run:

>  address-family ipv6 vpn
>   network ff01::/64 rd (null) label 7
>   network ff01::/64 rd (null) label 8

ad151f66aa ("bgpd: Refactor bgp_static_set/bgp_static_set_safi") merged
bgp_static_set_safi into bgp_static_set but inadvertently omitted the
handling of prd_pretty.

Copy the pretty RD string if available.

> address-family ipv6 vpn
>  network ff01::/64 rd 75:5 label 7
>  network ff01::/64 rd 85:5 label 8

Fixes: ad151f66aa ("bgpd: Refactor bgp_static_set/bgp_static_set_safi")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgp_route.c