From 77ea5710b3b4ecc4cdb3fac2482debfc2f47d8ea Mon Sep 17 00:00:00 2001 From: Madhuri Kuruganti Date: Tue, 20 Sep 2022 00:51:52 +0530 Subject: [PATCH] ospfd: fix for few debug commands lost in config after debug ospf packet is enabled Signed-off-by: Madhuri Kuruganti --- ospfd/ospf_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c index d8295315ca..9b347891ec 100644 --- a/ospfd/ospf_dump.c +++ b/ospfd/ospf_dump.c @@ -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) -- 2.39.5