]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: OSPFv2 VRF remove iflist from master
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 2 Oct 2017 18:47:02 +0000 (11:47 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 3 Oct 2017 16:22:47 +0000 (09:22 -0700)
Remove instances of ospf master's iflist and use vrf_list
with ospf vrf_id.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospfd/ospf_interface.c
ospfd/ospf_vty.c
ospfd/ospfd.c
ospfd/ospfd.h

index b623b173c17895f59a1b1ae1f198af32e0c3ea56..d8d7caa6888b5e04e0e9393164ad78ee95e131d1 100644 (file)
@@ -1180,7 +1180,6 @@ u_char ospf_default_iftype(struct interface *ifp)
 void ospf_if_init()
 {
        /* Initialize Zebra interface data structure. */
-       om->iflist = vrf_iflist(VRF_DEFAULT);
        hook_register_prio(if_add, 0, ospf_if_new_hook);
        hook_register_prio(if_del, 0, ospf_if_delete_hook);
 }
index a79a1ce9a4ccd82c06f1fc10a968fe0dab8ac358..3840bc41708ae3b2bbbe7b4d23152a71db8967a3 100644 (file)
@@ -9328,7 +9328,7 @@ static int ospf_config_write_one(struct vty *vty, struct ospf *ospf)
        if (ospf->passive_interface_default == OSPF_IF_PASSIVE)
                vty_out(vty, " passive-interface default\n");
 
-       for (ALL_LIST_ELEMENTS_RO(om->iflist, node, ifp))
+       for (ALL_LIST_ELEMENTS_RO(vrf_iflist(ospf->vrf_id), node, ifp))
                if (OSPF_IF_PARAM_CONFIGURED(IF_DEF_PARAMS(ifp),
                                             passive_interface)
                    && IF_DEF_PARAMS(ifp)->passive_interface
index ac88ff292d52ad8fedc96f6d173b3e03716279f2..507c97d9793d7ac3461479e01c795285708afec8 100644 (file)
@@ -1260,7 +1260,7 @@ static void ospf_network_run(struct prefix *p, struct ospf_area *area)
                ospf_router_id_update(area->ospf);
 
        /* Get target interface. */
-       for (ALL_LIST_ELEMENTS_RO(om->iflist, node, ifp))
+       for (ALL_LIST_ELEMENTS_RO(vrf_iflist(area->ospf->vrf_id), node, ifp))
                ospf_network_run_interface(area->ospf, ifp, p, area);
 }
 
index fb564ee274934c6eeb7bc5b9898448194dbb8897..01147c20040aa6b9c931958551b547cc696714ec 100644 (file)
@@ -93,8 +93,6 @@ struct ospf_master {
        /* OSPF thread master. */
        struct thread_master *master;
 
-       /* Zebra interface list. */
-       struct list *iflist;
 
        /* Redistributed external information. */
        struct list *external[ZEBRA_ROUTE_MAX + 1];