diff options
| author | Tuetuopay <tuetuopay@me.com> | 2019-03-06 19:09:25 +0100 |
|---|---|---|
| committer | Tuetuopay <tuetuopay@me.com> | 2019-03-19 11:56:14 +0100 |
| commit | e2f3a930c54c13c3174d6641fe4e6ee159966bd1 (patch) | |
| tree | bdfc8e5bff81c5ba50c6b83cf37a6e434553bf65 /bgpd/bgp_evpn.h | |
| parent | 0ff3b1118b3fe59859c2f6c9286f1756ba5f775d (diff) | |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn.h b/bgpd/bgp_evpn.h index fbf30083e1..bcc524d5aa 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; } |
