]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: cosmetic change for one command
authoranlan_cs <anlan_cs@126.com>
Mon, 3 Mar 2025 01:25:39 +0000 (09:25 +0800)
committeranlan_cs <anlan_cs@126.com>
Mon, 3 Mar 2025 02:12:01 +0000 (10:12 +0800)
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 <anlan_cs@126.com>
ospfd/ospf_dump.c

index 124b38219dbaa601870445e83cc76d2afbc36a9a..c1431731550e3a15873107e9cb6fad5786107195 100644 (file)
@@ -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;
 }