diff options
author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2018-02-19 11:04:27 +0100 |
---|---|---|
committer | mitesh <mitesh@cumulusnetworks.com> | 2018-02-27 10:14:43 +0100 |
commit | a75c25534a30b47b39f80b0fb8d66fd67f4836e0 (patch) | |
tree | 3430b81951ea5325301b251023c8809c4e73feee /bgpd/bgp_evpn_vty.c | |
parent | bgpd: move route-target for a vrf under address-family evpn command (diff) | |
download | frr-a75c25534a30b47b39f80b0fb8d66fd67f4836e0.tar.xz frr-a75c25534a30b47b39f80b0fb8d66fd67f4836e0.zip |
bgpd: write vrf rd to config
When a non-default vrf rd is configured under l2vpn evpn in a vrf,
we need to update the config file.
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_evpn_vty.c')
-rw-r--r-- | bgpd/bgp_evpn_vty.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index db865adf1..f65ea5a69 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -4376,6 +4376,8 @@ DEFUN (no_bgp_evpn_vni_rt_without_val, void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi) { + char buf1[RD_ADDRSTRLEN]; + if (bgp->vnihash) hash_iterate(bgp->vnihash, (void (*)(struct hash_backet *, @@ -4394,6 +4396,10 @@ void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp, afi_t afi, if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_ADVERTISE_IPV6_IN_EVPN)) vty_out(vty, " advertise ipv6 unicast\n"); + if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_RD_CFGD)) + vty_out(vty, " rd %s\n", + prefix_rd2str(&bgp->vrf_prd, buf1, sizeof(buf1))); + /* import route-target */ if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_IMPORT_RT_CFGD)) { char *ecom_str; |