]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Interface 'ip ospf neighbor-filter' startup config not applied. 16886/head
authorAcee Lindem <acee@lindem.com>
Fri, 20 Sep 2024 20:33:43 +0000 (20:33 +0000)
committerAcee Lindem <acee@lindem.com>
Fri, 20 Sep 2024 20:39:49 +0000 (20:39 +0000)
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 <acee@lindem.com>
ospfd/ospfd.c

index 1d013b260ee6baa255ea0d9de67dcce8b4941976..7638e979a207330a8b14b411cdffc297d7617c0d 100644 (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);