]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_top.c
lib: enforce vrf_name_to_id by returning default_vrf when name is null
[mirror_frr.git] / ospf6d / ospf6_top.c
index 7bf099fbbfb2dd33bc0c008e41ca7a6812e12e88..40c612381090658defacd51993bbcf288d57192c 100644 (file)
@@ -202,7 +202,7 @@ void ospf6_delete(struct ospf6 *o)
                ospf6_area_delete(oa);
 
 
-       list_delete_and_null(&o->area_list);
+       list_delete(&o->area_list);
 
        ospf6_lsdb_delete(o->lsdb);
        ospf6_lsdb_delete(o->lsdb_self);
@@ -425,19 +425,6 @@ DEFUN(no_ospf6_router_id,
        return CMD_SUCCESS;
 }
 
-#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180828
-CPP_NOTICE("ospf6: `router-id A.B.C.D` deprecated 2017/08/28")
-#endif
-ALIAS_HIDDEN(ospf6_router_id, ospf6_router_id_hdn_cmd, "router-id A.B.C.D",
-            "Configure OSPF6 Router-ID\n" V4NOTATION_STR)
-
-#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180828
-CPP_NOTICE("ospf6: `no router-id A.B.C.D` deprecated 2017/08/28")
-#endif
-ALIAS_HIDDEN(no_ospf6_router_id, no_ospf6_router_id_hdn_cmd,
-            "no router-id [A.B.C.D]",
-            NO_STR "Configure OSPF6 Router-ID\n" V4NOTATION_STR)
-
 DEFUN (ospf6_log_adjacency_changes,
        ospf6_log_adjacency_changes_cmd,
        "log-adjacency-changes",
@@ -669,7 +656,7 @@ DEFUN (ospf6_interface_area,
        uint32_t area_id;
 
        /* find/create ospf6 interface */
-       ifp = if_get_by_name(argv[idx_ifname]->arg, VRF_DEFAULT, 0);
+       ifp = if_get_by_name(argv[idx_ifname]->arg, VRF_DEFAULT);
        oi = (struct ospf6_interface *)ifp->info;
        if (oi == NULL)
                oi = ospf6_interface_create(ifp);
@@ -1144,8 +1131,6 @@ void ospf6_top_init(void)
        install_default(OSPF6_NODE);
        install_element(OSPF6_NODE, &ospf6_router_id_cmd);
        install_element(OSPF6_NODE, &no_ospf6_router_id_cmd);
-       install_element(OSPF6_NODE, &ospf6_router_id_hdn_cmd);
-       install_element(OSPF6_NODE, &no_ospf6_router_id_hdn_cmd);
        install_element(OSPF6_NODE, &ospf6_log_adjacency_changes_cmd);
        install_element(OSPF6_NODE, &ospf6_log_adjacency_changes_detail_cmd);
        install_element(OSPF6_NODE, &no_ospf6_log_adjacency_changes_cmd);