diff options
author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2018-02-20 09:23:06 +0100 |
---|---|---|
committer | mitesh <mitesh@cumulusnetworks.com> | 2018-02-23 02:23:07 +0100 |
commit | fdf19f06f2fd96513d5da7b835155bd607cf999a (patch) | |
tree | 5c99a7d53b101038eeef29dcb405376fdb744dca /bgpd/bgp_evpn_private.h | |
parent | Merge pull request #1730 from Orange-OpenSource/master (diff) | |
download | frr-fdf19f06f2fd96513d5da7b835155bd607cf999a.tar.xz frr-fdf19f06f2fd96513d5da7b835155bd607cf999a.zip |
bgpd: allow advertise-subnet cmd without enabling advertise ipv4 unicast
Type-5 routes can be useful in multiple scenarios such as advertise-subnet,
default-originate etc. Currently, the code has a restriction that to allow
advertising type-5 routes, user has to first enable advertise ipvX command.
This restriction is not necessary and should be removed.
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_evpn_private.h')
-rw-r--r-- | bgpd/bgp_evpn_private.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/bgpd/bgp_evpn_private.h b/bgpd/bgp_evpn_private.h index cc0ec8234..5ff16c39e 100644 --- a/bgpd/bgp_evpn_private.h +++ b/bgpd/bgp_evpn_private.h @@ -349,23 +349,6 @@ static inline void build_evpn_type3_prefix(struct prefix_evpn *p, p->prefix.ip.ipaddr_v4 = originator_ip; } -static inline int advertise_type5_routes(struct bgp *bgp_vrf, - afi_t afi) -{ - if (!bgp_vrf->l3vni) - return 0; - - if (afi == AFI_IP && - CHECK_FLAG(bgp_vrf->vrf_flags, BGP_VRF_ADVERTISE_IPV4_IN_EVPN)) - return 1; - - if (afi == AFI_IP6 && - CHECK_FLAG(bgp_vrf->vrf_flags, BGP_VRF_ADVERTISE_IPV6_IN_EVPN)) - return 1; - - return 0; -} - extern void evpn_rt_delete_auto(struct bgp*, vni_t, struct list*); extern void bgp_evpn_configure_export_rt_for_vrf(struct bgp *bgp_vrf, struct ecommunity *ecomadd); |