Skip to content

Commit

Permalink
ospfd: Interface 'ip ospf neighbor-filter' startup config not applied.
Browse files Browse the repository at this point in the history
When 'ip ospf neighbor-filter <filter-name>' is configured in the startup
configuration, it is in the running configuration but not applied on the
interface.

Signed-off-by: Acee Lindem <[email protected]>
  • Loading branch information
aceelindem committed Sep 20, 2024
1 parent bb995fb commit 77de5ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ospfd/ospfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 77de5ee

Please sign in to comment.