]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: fix for few debug commands lost in config after debug ospf packet is enabled 11961/head
authorMadhuri Kuruganti <maduri111@gmail.com>
Mon, 19 Sep 2022 19:21:52 +0000 (00:51 +0530)
committerMadhuri Kuruganti <maduri111@gmail.com>
Mon, 19 Sep 2022 19:21:52 +0000 (00:51 +0530)
Signed-off-by: Madhuri Kuruganti <maduri111@gmail.com>
ospfd/ospf_dump.c

index d8295315ca8f9ac0b855e67f5555ffff921c304e..9b347891ecf36ac87126373261b4fe5457273ebc 100644 (file)
@@ -1930,7 +1930,7 @@ static int config_write_debug(struct vty *vty)
                     & (OSPF_DEBUG_SEND_RECV | OSPF_DEBUG_DETAIL);
        if (r == (OSPF_DEBUG_SEND_RECV | OSPF_DEBUG_DETAIL)) {
                vty_out(vty, "debug ospf%s packet all detail\n", str);
-               return 1;
+               write = 1;
        }
 
        /* debug ospf packet all. */
@@ -1943,7 +1943,7 @@ static int config_write_debug(struct vty *vty)
                        if (conf_debug_ospf_packet[i] & OSPF_DEBUG_DETAIL)
                                vty_out(vty, "debug ospf%s packet %s detail\n",
                                        str, type_str[i]);
-               return 1;
+               write = 1;
        }
 
        /* debug ospf packet (hello|dd|ls-request|ls-update|ls-ack)