mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 11:48:50 +00:00
eigrpd: Update eigrp_filter.c to use VRF_DEFAULT
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
2d4592e4c3
commit
4cfff48a25
@ -65,17 +65,15 @@
|
|||||||
void eigrp_distribute_update(struct distribute_ctx *ctx,
|
void eigrp_distribute_update(struct distribute_ctx *ctx,
|
||||||
struct distribute *dist)
|
struct distribute *dist)
|
||||||
{
|
{
|
||||||
|
struct eigrp *e = eigrp_lookup(ctx->vrf->vrf_id);
|
||||||
struct interface *ifp;
|
struct interface *ifp;
|
||||||
struct eigrp_interface *ei = NULL;
|
struct eigrp_interface *ei = NULL;
|
||||||
struct access_list *alist;
|
struct access_list *alist;
|
||||||
struct prefix_list *plist;
|
struct prefix_list *plist;
|
||||||
// struct route_map *routemap;
|
// struct route_map *routemap;
|
||||||
struct eigrp *e;
|
|
||||||
|
|
||||||
/* if no interface address is present, set list to eigrp process struct
|
/* if no interface address is present, set list to eigrp process struct
|
||||||
*/
|
*/
|
||||||
e = eigrp_lookup(VRF_DEFAULT);
|
|
||||||
assert(e != NULL);
|
|
||||||
|
|
||||||
/* Check if distribute-list was set for process or interface */
|
/* Check if distribute-list was set for process or interface */
|
||||||
if (!dist->ifname) {
|
if (!dist->ifname) {
|
||||||
@ -302,11 +300,13 @@ void eigrp_distribute_update_interface(struct interface *ifp)
|
|||||||
*/
|
*/
|
||||||
void eigrp_distribute_update_all(struct prefix_list *notused)
|
void eigrp_distribute_update_all(struct prefix_list *notused)
|
||||||
{
|
{
|
||||||
struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
|
struct vrf *vrf;
|
||||||
struct interface *ifp;
|
struct interface *ifp;
|
||||||
|
|
||||||
|
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
|
||||||
FOR_ALL_INTERFACES (vrf, ifp)
|
FOR_ALL_INTERFACES (vrf, ifp)
|
||||||
eigrp_distribute_update_interface(ifp);
|
eigrp_distribute_update_interface(ifp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -35,10 +35,10 @@
|
|||||||
|
|
||||||
extern void eigrp_distribute_update(struct distribute_ctx *ctx,
|
extern void eigrp_distribute_update(struct distribute_ctx *ctx,
|
||||||
struct distribute *dist);
|
struct distribute *dist);
|
||||||
extern void eigrp_distribute_update_interface(struct interface *);
|
extern void eigrp_distribute_update_interface(struct interface *ifp);
|
||||||
extern void eigrp_distribute_update_all(struct prefix_list *);
|
extern void eigrp_distribute_update_all(struct prefix_list *plist);
|
||||||
extern void eigrp_distribute_update_all_wrapper(struct access_list *);
|
extern void eigrp_distribute_update_all_wrapper(struct access_list *alist);
|
||||||
extern int eigrp_distribute_timer_process(struct thread *);
|
extern int eigrp_distribute_timer_process(struct thread *thread);
|
||||||
extern int eigrp_distribute_timer_interface(struct thread *);
|
extern int eigrp_distribute_timer_interface(struct thread *thread);
|
||||||
|
|
||||||
#endif /* EIGRPD_EIGRP_FILTER_H_ */
|
#endif /* EIGRPD_EIGRP_FILTER_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user