Skip to content

Commit

Permalink
Merge pull request #17200 from opensourcerouting/vtysh-fix-list-find
Browse files Browse the repository at this point in the history
vtysh: fix `find` and `list` commands
  • Loading branch information
donaldsharp authored Oct 28, 2024
2 parents 1668f32 + 1530a35 commit ea0b8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/xref2vtysh.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,11 @@ def output_node_graph(cls, ofd, node, cmds, splitfile):
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]

Expand Down

0 comments on commit ea0b8a0

Please sign in to comment.