summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-25 05:00:04 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-25 05:00:04 +0200
commit92300491f60ef24128054bbf42b1b22ed12f2f9e (patch)
tree7ad8fb479fe35e6464bc45babe9e45052e92d524 /ospf6d
parentbgpd: fixed more CHECK MEs in bgp_vty.c (diff)
downloadfrr-92300491f60ef24128054bbf42b1b22ed12f2f9e.tar.xz
frr-92300491f60ef24128054bbf42b1b22ed12f2f9e.zip
zebra: CHECK ME fixes
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_asbr.c7
-rw-r--r--ospf6d/ospf6d.c73
2 files changed, 80 insertions, 0 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index 014320a2f..c35b30a65 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -1421,3 +1421,10 @@ config_write_ospf6_debug_asbr (struct vty *vty)
}
void
+install_element_ospf6_debug_asbr ()
+{
+ install_element (ENABLE_NODE, &debug_ospf6_asbr_cmd);
+ install_element (ENABLE_NODE, &no_debug_ospf6_asbr_cmd);
+ install_element (CONFIG_NODE, &debug_ospf6_asbr_cmd);
+ install_element (CONFIG_NODE, &no_debug_ospf6_asbr_cmd);
+}
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index c72dde0ac..b57228885 100644
--- a/ospf6d/ospf6d.c
+++ b/ospf6d/ospf6d.c
@@ -1790,3 +1790,76 @@ ospf6_init (void)
ospf6_bfd_init();
install_node (&debug_node, config_write_ospf6_debug);
+ install_element_ospf6_debug_message ();
+ install_element_ospf6_debug_lsa ();
+ install_element_ospf6_debug_interface ();
+ install_element_ospf6_debug_neighbor ();
+ install_element_ospf6_debug_zebra ();
+ install_element_ospf6_debug_spf ();
+ install_element_ospf6_debug_route ();
+ install_element_ospf6_debug_brouter ();
+ install_element_ospf6_debug_asbr ();
+ install_element_ospf6_debug_abr ();
+ install_element_ospf6_debug_flood ();
+
+ install_element_ospf6_clear_interface ();
+
+ install_element (VIEW_NODE, &show_version_ospf6_cmd);
+ install_element (ENABLE_NODE, &show_version_ospf6_cmd);
+
+ install_element (VIEW_NODE, &show_ipv6_ospf6_border_routers_cmd);
+ install_element (ENABLE_NODE, &show_ipv6_ospf6_border_routers_cmd);
+
+ install_element (VIEW_NODE, &show_ipv6_ospf6_linkstate_cmd);
+ install_element (VIEW_NODE, &show_ipv6_ospf6_linkstate_detail_cmd);
+ install_element (ENABLE_NODE, &show_ipv6_ospf6_linkstate_cmd);
+ install_element (ENABLE_NODE, &show_ipv6_ospf6_linkstate_detail_cmd);
+
+#define INSTALL(n,c) \
+ install_element (n ## _NODE, &show_ipv6_ospf6_ ## c)
+
+ INSTALL (VIEW, database_cmd);
+ INSTALL (VIEW, database_type_cmd);
+ INSTALL (VIEW, database_id_cmd);
+ INSTALL (VIEW, database_router_cmd);
+ INSTALL (VIEW, database_type_id_cmd);
+ INSTALL (VIEW, database_type_router_cmd);
+ INSTALL (VIEW, database_adv_router_linkstate_id_cmd);
+ INSTALL (VIEW, database_id_router_cmd);
+ INSTALL (VIEW, database_type_id_router_cmd);
+ INSTALL (VIEW, database_type_adv_router_linkstate_id_cmd);
+ INSTALL (VIEW, database_self_originated_cmd);
+ INSTALL (VIEW, database_type_self_originated_cmd);
+ INSTALL (VIEW, database_type_id_self_originated_cmd);
+ INSTALL (VIEW, database_type_self_originated_linkstate_id_cmd);
+
+ INSTALL (ENABLE, database_cmd);
+ INSTALL (ENABLE, database_type_cmd);
+ INSTALL (ENABLE, database_id_cmd);
+ INSTALL (ENABLE, database_router_cmd);
+ INSTALL (ENABLE, database_type_id_cmd);
+ INSTALL (ENABLE, database_type_router_cmd);
+ INSTALL (ENABLE, database_adv_router_linkstate_id_cmd);
+ INSTALL (ENABLE, database_id_router_cmd);
+ INSTALL (ENABLE, database_type_id_router_cmd);
+ INSTALL (ENABLE, database_type_adv_router_linkstate_id_cmd);
+ INSTALL (ENABLE, database_self_originated_cmd);
+ INSTALL (ENABLE, database_type_self_originated_cmd);
+ INSTALL (ENABLE, database_type_id_self_originated_cmd);
+ INSTALL (ENABLE, database_type_self_originated_linkstate_id_cmd);
+
+ /* Make ospf protocol socket. */
+ ospf6_serv_sock ();
+ thread_add_read (master, ospf6_receive, NULL, ospf6_sock);
+}
+
+void
+ospf6_clean (void)
+{
+ if (!ospf6)
+ return;
+ if (ospf6->route_table)
+ ospf6_route_remove_all (ospf6->route_table);
+ if (ospf6->brouter_table)
+ ospf6_route_remove_all (ospf6->brouter_table);
+}