]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/command_graph.c
Merge pull request #12142 from opensourcerouting/fix/sendholdtimer
[mirror_frr.git] / lib / command_graph.c
index 09d802e796705b4e1003b0b804559148d68cbdc0..e940685250fad5343f9a670646913dfcaa963ca8 100644 (file)
@@ -494,9 +494,10 @@ void cmd_graph_node_print_cb(struct graph_node *gn, struct buffer *buf)
        snprintf(nbuf, sizeof(nbuf), "<b>%s</b>",
                 lookup_msg(tokennames, tok->type, NULL));
        buffer_putstr(buf, nbuf);
-       if (tok->attr == CMD_ATTR_DEPRECATED)
+       if (tok->attr & CMD_ATTR_DEPRECATED)
                buffer_putstr(buf, " (d)");
-       else if (tok->attr == CMD_ATTR_HIDDEN)
+       /* DEPRECATED implies HIDDEN, don't print both */
+       else if (tok->attr & CMD_ATTR_HIDDEN)
                buffer_putstr(buf, " (h)");
        if (tok->text) {
                if (tok->type == WORD_TKN)