diff options
| author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-11-04 18:36:19 -0700 |
|---|---|---|
| committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-14 10:57:08 -0800 |
| commit | 6ee86383bb69a21c9bcb215d8e47ca2bb2e82a79 (patch) | |
| tree | d52c540b795952efa5a219bc2a1f56bc148a9ba5 | |
| parent | 053905d2e30fe556e0f7e289094976c71b361bc1 (diff) | |
bgpd: write advertise <ipv4|ipv6> unicast under bgp vrf config
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
| -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 0130b33cf8..1cf4e773e1 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -4027,6 +4027,12 @@ void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp, afi_t afi, if (bgp->advertise_gw_macip) vty_out(vty, " advertise-default-gw\n"); + + if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_ADVERTISE_IPV4_IN_EVPN)) + vty_out(vty, " advertise ipv4 unicast\n"); + + if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_ADVERTISE_IPV6_IN_EVPN)) + vty_out(vty, " advertise ipv6 unicast\n"); } void bgp_ethernetvpn_init(void) |
