]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_area.c
zebra: Re-evaluate the nexthop tracking if flags changed
[mirror_frr.git] / ospf6d / ospf6_area.c
index 30f0e9e77421daaf10c682c71a0ab3d422a78989..484e5adae674a3ab044629e0b346d0dad7640fa5 100644 (file)
@@ -138,11 +138,11 @@ static void ospf6_area_stub_update(struct ospf6_area *area)
 
        if (IS_AREA_STUB(area)) {
                if (IS_OSPF6_DEBUG_ORIGINATE(ROUTER))
-                       zlog_debug("Stubbing out area for if %s\n", area->name);
+                       zlog_debug("Stubbing out area for if %s", area->name);
                OSPF6_OPT_CLEAR(area->options, OSPF6_OPT_E);
        } else if (IS_AREA_ENABLED(area)) {
                if (IS_OSPF6_DEBUG_ORIGINATE(ROUTER))
-                       zlog_debug("Normal area for if %s\n", area->name);
+                       zlog_debug("Normal area for if %s", area->name);
                OSPF6_OPT_SET(area->options, OSPF6_OPT_E);
                ospf6_asbr_send_externals_to_area(area);
        }
@@ -450,7 +450,7 @@ DEFUN (area_range,
 
        range->path.u.cost_config = cost;
 
-       zlog_debug("%s: for prefix %s, flag = %x\n", __func__,
+       zlog_debug("%s: for prefix %s, flag = %x", __func__,
                   argv[idx_ipv6_prefixlen]->arg, range->flag);
        if (range->rnode == NULL) {
                ospf6_route_add(range, oa->range_table);
@@ -1022,3 +1022,16 @@ void ospf6_area_init(void)
        install_element(OSPF6_NODE, &area_filter_list_cmd);
        install_element(OSPF6_NODE, &no_area_filter_list_cmd);
 }
+
+void ospf6_area_interface_delete(struct ospf6_interface *oi)
+{
+       struct ospf6_area *oa;
+       struct listnode *node, *nnode;
+
+       if (!ospf6)
+               return;
+       for (ALL_LIST_ELEMENTS(ospf6->area_list, node, nnode, oa))
+               if(listnode_lookup(oa->if_list, oi))
+                       listnode_delete(oa->if_list, oi);
+
+}