]> git.puffer.fish Git - mirror/frr.git/commit
lib: mgmtd: fix debug cli commands and memleaks
authorChristian Hopps <chopps@labn.net>
Sat, 11 Nov 2023 18:21:17 +0000 (19:21 +0100)
committerChristian Hopps <chopps@labn.net>
Sat, 11 Nov 2023 18:25:03 +0000 (19:25 +0100)
commit59beac5013f48889d8b73bb57df085d8d3e7a09f
tree799ce3a01f6417db5d7538e615a5e72fd3761185
parent19bcca4f2e9a3ee3c8cc16608dcf303241bbf014
lib: mgmtd: fix debug cli commands and memleaks

- Cannot have 2 cmd_node's with same .node number. Install the mgmtd
client library debug nodes (client frontend and client backend) using
new unique node numbers. Fixes memleaks.

- Fix "debug mgmt client backend" to generate correct config (and not
for frontend).

Signed-off-by: Christian Hopps <chopps@labn.net>
lib/command.h
lib/mgmt_be_client.c
lib/mgmt_fe_client.c
mgmtd/mgmt_vty.c
vtysh/vtysh_config.c