]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix default RD value in running-cfg
authorChirag Shah <chirag@cumulusnetworks.com>
Sat, 16 Jun 2018 04:11:16 +0000 (21:11 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Sat, 16 Jun 2018 05:19:08 +0000 (22:19 -0700)
When bgp vrf is configured with non-default
RD value, config flag is set.
Upon removing non-default RD value the flag was not reset,
thus displayed default RD value in running-config.

router bgp 5550 vrf vrf1
 rd 45.0.2.2:5

Unset the RD configuration flag under bgp_vrf instance.

Ticket:CM-20206

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bgpd/bgp_evpn_vty.c

index 8556a325bb1bd953e81cf79273c34dec66a7814c..cb71e06149ebd2f3323d41f43898fc5426aeda94 100644 (file)
@@ -1829,6 +1829,7 @@ static void evpn_unconfigure_vrf_rd(struct bgp *bgp_vrf)
 
        /* fall back to default RD */
        bgp_evpn_derive_auto_rd_for_vrf(bgp_vrf);
+       UNSET_FLAG(bgp_vrf->vrf_flags, BGP_VRF_RD_CFGD);
 
        /* We have a new RD for VRF.
         * Advertise all type-5 routes again with the new RD