mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 07:23:41 +00:00
vtysh: fix find
and list
commands
I simply missed that `node->cmd_vector` is needed for `find` and `list`
to work correctly.
Fixes: #17043
Fixes: 4bc41193e8
("vtysh, lib: preprocess CLI graphs")
Reported-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
fd6f46e9fd
commit
1530a35423
@ -450,9 +450,11 @@ class CommandEntry:
|
|||||||
graph_delete_node(node->cmdgraph, vector_slot(node->cmdgraph->nodes, 0));
|
graph_delete_node(node->cmdgraph, vector_slot(node->cmdgraph->nodes, 0));
|
||||||
vector_free(node->cmdgraph->nodes);
|
vector_free(node->cmdgraph->nodes);
|
||||||
node->cmdgraph->nodes = &gvec_{node};
|
node->cmdgraph->nodes = &gvec_{node};
|
||||||
{'}'}
|
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
for cmdel in sorted(cmdels):
|
||||||
|
ofd.write(f"\tvector_set(node->cmd_vector, &{cmdel}_vtysh);\n")
|
||||||
|
ofd.write("}\n")
|
||||||
|
|
||||||
return [node]
|
return [node]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user