Merge pull request #16893 from FRRouting/mergify/bp/stable/10.1/pr-16886

ospfd: Interface 'ip ospf neighbor-filter' startup config not applied. (backport #16886)
This commit is contained in:
Russ White 2024-09-24 12:33:27 -04:00 committed by GitHub
commit e45891fca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1098,6 +1098,15 @@ struct ospf_interface *add_ospf_interface(struct connected *co,
oi->p2mp_delay_reflood = IF_DEF_PARAMS(co->ifp)->p2mp_delay_reflood;
oi->p2mp_non_broadcast = IF_DEF_PARAMS(co->ifp)->p2mp_non_broadcast;
/*
* If a neighbor filter is configured, update the neighbor filter
* for the interface.
*/
if (OSPF_IF_PARAM_CONFIGURED(IF_DEF_PARAMS(co->ifp), nbr_filter_name))
oi->nbr_filter = prefix_list_lookup(AFI_IP,
IF_DEF_PARAMS(co->ifp)
->nbr_filter_name);
/* Add pseudo neighbor. */
ospf_nbr_self_reset(oi, oi->ospf->router_id);