Merge pull request #17200 from opensourcerouting/vtysh-fix-list-find

vtysh: fix `find` and `list` commands
This commit is contained in:
Donald Sharp 2024-10-28 14:05:29 -04:00 committed by GitHub
commit ea0b8a0364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]