mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #17200 from opensourcerouting/vtysh-fix-list-find
vtysh: fix `find` and `list` commands
This commit is contained in:
commit
ea0b8a0364
|
@ -450,9 +450,11 @@ class CommandEntry:
|
|||
graph_delete_node(node->cmdgraph, vector_slot(node->cmdgraph->nodes, 0));
|
||||
vector_free(node->cmdgraph->nodes);
|
||||
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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue