From 3af15029db389a58d2f0dc5cb1be53ec379248e6 Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Mon, 3 Mar 2025 09:25:39 +0800 Subject: [PATCH] ospfd: cosmetic change for one command Just use the same style for all `DEFPY`s. It is a cosmetic change, doesn't affect the actual function. Signed-off-by: anlan_cs --- ospfd/ospf_dump.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c index 124b38219d..c143173155 100644 --- a/ospfd/ospf_dump.c +++ b/ospfd/ospf_dump.c @@ -1509,16 +1509,16 @@ DEFPY (debug_ospf_gr, if (vty->node == CONFIG_NODE) { if (no) - CONF_DEBUG_OFF(gr, GR); + DEBUG_OFF(gr, GR); else - CONF_DEBUG_ON(gr, GR); + DEBUG_ON(gr, GR); + } else { + if (no) + TERM_DEBUG_OFF(gr, GR); + else + TERM_DEBUG_ON(gr, GR); } - if (no) - TERM_DEBUG_OFF(gr, GR); - else - TERM_DEBUG_ON(gr, GR); - return CMD_SUCCESS; }