diff options
author | Tuetuopay <tuetuopay@me.com> | 2019-03-27 02:16:27 +0100 |
---|---|---|
committer | Tuetuopay <tuetuopay@me.com> | 2019-03-27 02:16:27 +0100 |
commit | 0fb2ad05d9e11a211915208e3fa648c8e170e31e (patch) | |
tree | be11673f4ca34ef658cf1e66814aa3d7d526c485 /zebra/zebra_vrf.h | |
parent | zebra: Change checks for EVPN VRF to a macro (diff) | |
download | frr-0fb2ad05d9e11a211915208e3fa648c8e170e31e.tar.xz frr-0fb2ad05d9e11a211915208e3fa648c8e170e31e.zip |
zebra: Move the EVPN VRF pointer to zebra_router
It had no logical reason to be in the default VRF. This moves it to the
zebra_router, which is better suited to store global references.
Signed-off-by: Tuetuopay <tuetuopay@me.com>
Sponsored-by: Scaleway
Diffstat (limited to 'zebra/zebra_vrf.h')
-rw-r--r-- | zebra/zebra_vrf.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/zebra/zebra_vrf.h b/zebra/zebra_vrf.h index 115d2b9d0..f6566d02a 100644 --- a/zebra/zebra_vrf.h +++ b/zebra/zebra_vrf.h @@ -124,11 +124,6 @@ struct zebra_vrf { int advertise_svi_macip; - /* - * The EVPN instance, if any - */ - vrf_id_t evpn_vrf_id; - /* l3-vni info */ vni_t l3vni; @@ -201,15 +196,6 @@ extern struct zebra_vrf *zebra_vrf_lookup_by_name(const char *); extern struct zebra_vrf *zebra_vrf_alloc(void); extern struct route_table *zebra_vrf_table(afi_t, safi_t, vrf_id_t); -static inline vrf_id_t zebra_vrf_get_evpn_id(void) -{ - return zebra_vrf_lookup_by_id(VRF_DEFAULT)->evpn_vrf_id; -} -static inline struct zebra_vrf *zebra_vrf_get_evpn(void) -{ - return zebra_vrf_lookup_by_id(zebra_vrf_get_evpn_id()); -} - extern struct route_table * zebra_vrf_other_route_table(afi_t afi, uint32_t table_id, vrf_id_t vrf_id); extern int zebra_vrf_has_config(struct zebra_vrf *zvrf); |