diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-15 15:20:11 -0400 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-08-06 22:42:12 -0300 |
| commit | 4cfff48a25952cb95bf881d41fe4147bc0efcc0c (patch) | |
| tree | 9068a9627dba986a9b34582f76f12d0071540239 /eigrpd/eigrp_filter.c | |
| parent | 2d4592e4c3ca2890b566b2608bb5ac9637f27d9c (diff) | |
eigrpd: Update eigrp_filter.c to use VRF_DEFAULT
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_filter.c')
| -rw-r--r-- | eigrpd/eigrp_filter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eigrpd/eigrp_filter.c b/eigrpd/eigrp_filter.c index ef658bafe0..9d5d45ca50 100644 --- a/eigrpd/eigrp_filter.c +++ b/eigrpd/eigrp_filter.c @@ -65,17 +65,15 @@ void eigrp_distribute_update(struct distribute_ctx *ctx, struct distribute *dist) { + struct eigrp *e = eigrp_lookup(ctx->vrf->vrf_id); struct interface *ifp; struct eigrp_interface *ei = NULL; struct access_list *alist; struct prefix_list *plist; // struct route_map *routemap; - struct eigrp *e; /* 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 */ if (!dist->ifname) { @@ -302,11 +300,13 @@ void eigrp_distribute_update_interface(struct interface *ifp) */ void eigrp_distribute_update_all(struct prefix_list *notused) { - struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT); + struct vrf *vrf; struct interface *ifp; - FOR_ALL_INTERFACES (vrf, ifp) - eigrp_distribute_update_interface(ifp); + RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { + FOR_ALL_INTERFACES (vrf, ifp) + eigrp_distribute_update_interface(ifp); + } } /* |
