]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: minor parser fixes
authorDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 29 Sep 2016 17:37:07 +0000 (17:37 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 29 Sep 2016 17:37:07 +0000 (17:37 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
ospfd/ospf_dump.c
ospfd/ospf_ri.c
ospfd/ospf_routemap.c

index bf71c7be6a4b2f30b7e063ffb4476c9030e67282..f2b332053cd65113cfc60b3699b4b17efe0bb0ed 100644 (file)
@@ -962,6 +962,8 @@ DEFUN (debug_ospf_ism,
       else if (strmatch (dbgparam, "timers"))
         TERM_DEBUG_ON (ism, ISM_TIMERS);
     }
+
+  return CMD_SUCCESS;
 }
 
 DEFUN (no_debug_ospf_ism,
@@ -1013,6 +1015,8 @@ DEFUN (no_debug_ospf_ism,
       else if (strmatch (dbgparam, "timers"))
         TERM_DEBUG_OFF (ism, ISM_TIMERS);
     }
+
+  return CMD_SUCCESS;
 }
 
 static int
@@ -2070,7 +2074,6 @@ debug_init ()
   install_node (&debug_node, config_write_debug);
 
   install_element (ENABLE_NODE, &show_debugging_ospf_cmd);
-  install_element (ENABLE_NODE, &debug_ospf_packet_all_cmd);
   install_element (ENABLE_NODE, &debug_ospf_ism_cmd);
   install_element (ENABLE_NODE, &debug_ospf_nsm_cmd);
   install_element (ENABLE_NODE, &debug_ospf_lsa_cmd);
@@ -2078,7 +2081,6 @@ debug_init ()
   install_element (ENABLE_NODE, &debug_ospf_event_cmd);
   install_element (ENABLE_NODE, &debug_ospf_nssa_cmd);
   install_element (ENABLE_NODE, &debug_ospf_te_cmd);
-  install_element (ENABLE_NODE, &no_debug_ospf_packet_all_cmd);
   install_element (ENABLE_NODE, &no_debug_ospf_ism_cmd);
   install_element (ENABLE_NODE, &no_debug_ospf_nsm_cmd);
   install_element (ENABLE_NODE, &no_debug_ospf_lsa_cmd);
@@ -2118,7 +2120,6 @@ debug_init ()
   install_element (CONFIG_NODE, &debug_ospf_event_cmd);
   install_element (CONFIG_NODE, &debug_ospf_nssa_cmd);
   install_element (CONFIG_NODE, &debug_ospf_te_cmd);
-  install_element (CONFIG_NODE, &no_debug_ospf_packet_all_cmd);
   install_element (CONFIG_NODE, &no_debug_ospf_ism_cmd);
   install_element (CONFIG_NODE, &no_debug_ospf_nsm_cmd);
   install_element (CONFIG_NODE, &no_debug_ospf_lsa_cmd);
index 151adadb9a218cd705d27c03fd6bed3101ce3fd3..bcb1cd8e20a864b0655b574c2da402ec0abe2236 100644 (file)
@@ -1183,7 +1183,7 @@ DEFUN (router_info,
        "OSPF area ID in IP format")
 {
   int idx_ipv4 = 2;
-  char *area = (argc == 3) ? argv[2]->arg : NULL;
+  char *area = (argc == 3) ? argv[idx_ipv4]->arg : NULL;
 
   u_int8_t scope;
 
index 21dca9546ce2091cb3eda72beb35b6a2333760a2..33ddc67fccb4454a2758797470f2cf2aa2b6fd5b 100644 (file)
@@ -799,8 +799,8 @@ DEFUN (no_match_ip_address_prefix_list,
        MATCH_STR
        IP_STR
        "Match address of route\n"
-       "Match entries of prefix-lists\n")
-       "IP prefix-list name\n"
+       "Match entries of prefix-lists\n"
+       "IP prefix-list name\n")
 {
   char *pl = (argc == 6) ? argv[5]->arg : NULL;
   return ospf_route_match_delete (vty, vty->index, "ip address prefix-list", pl);
@@ -892,9 +892,9 @@ DEFUN (no_set_metric_type,
        "no set metric-type [<type-1|type-2>]",
        NO_STR
        SET_STR
-       "Type of metric for destination routing protocol\n")
+       "Type of metric for destination routing protocol\n"
        "OSPF[6] external type 1 metric\n"
-       "OSPF[6] external type 2 metric\n"
+       "OSPF[6] external type 2 metric\n")
 {
   char *ext = (argc == 4) ? argv[3]->text : NULL;
   return ospf_route_set_delete (vty, vty->index, "metric-type", ext);