diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-10-28 14:05:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-28 14:05:29 -0400 |
| commit | ea0b8a0364bdb37679064b680347d7276c03ca06 (patch) | |
| tree | 6dfa5f6121f4382b3854d83878503e5b3f825857 /python/xref2vtysh.py | |
| parent | 1668f3262a21b9990bbf3913742c58a62596c757 (diff) | |
| parent | 1530a35423ca985b723f2f78e5aac832bc8bacd8 (diff) | |
Merge pull request #17200 from opensourcerouting/vtysh-fix-list-find
vtysh: fix `find` and `list` commands
Diffstat (limited to 'python/xref2vtysh.py')
| -rw-r--r-- | python/xref2vtysh.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/xref2vtysh.py b/python/xref2vtysh.py index 0cfb11e721..0e6cdcd6a7 100644 --- a/python/xref2vtysh.py +++ b/python/xref2vtysh.py @@ -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] |
