summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_evpn.h
diff options
context:
space:
mode:
authorTuetuopay <tuetuopay@me.com>2019-03-06 19:09:25 +0100
committerTuetuopay <tuetuopay@me.com>2019-03-19 11:56:14 +0100
commite2f3a930c54c13c3174d6641fe4e6ee159966bd1 (patch)
treebdfc8e5bff81c5ba50c6b83cf37a6e434553bf65 /bgpd/bgp_evpn.h
parentMerge pull request #3855 from donaldsharp/bgp_clist_sa (diff)
downloadfrr-e2f3a930c54c13c3174d6641fe4e6ee159966bd1.tar.xz
frr-e2f3a930c54c13c3174d6641fe4e6ee159966bd1.zip
bgpd: Allow non-default instance to be EVPN one
This makes the instance bearing the advertise-all-vni config option register to zebra as the EVPN one, forwarding it the option. Signed-off-by: Tuetuopay <tuetuopay@me.com> Sponsored-by: Scaleway
Diffstat (limited to 'bgpd/bgp_evpn.h')
-rw-r--r--bgpd/bgp_evpn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn.h b/bgpd/bgp_evpn.h
index fbf30083e..bcc524d5a 100644
--- a/bgpd/bgp_evpn.h
+++ b/bgpd/bgp_evpn.h
@@ -31,7 +31,7 @@ static inline int is_evpn_enabled(void)
{
struct bgp *bgp = NULL;
- bgp = bgp_get_default();
+ bgp = bgp_get_evpn();
return bgp ? bgp->advertise_all_vni : 0;
}