]> git.puffer.fish Git - mirror/frr.git/commit
mgmtd: fix be_is_client_interested 15361/head
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 12 Feb 2024 18:34:33 +0000 (20:34 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 12 Feb 2024 18:55:34 +0000 (20:55 +0200)
commit745a2bd8b3bb586f9b643a186b79f24e515548e8
tree73334d4270cbcb3cc284b8ad73085b610800e879
parent24ca4f408b27f567cdb8a1187a1db20a9859e56c
mgmtd: fix be_is_client_interested

Backend "subscribe" API allows daemons to dynamically register xpaths
they are interested in. Such xpaths are not stored in hardcoded
config/oper xpath arrays so this function fails to understand that a
backend daemon is interested in them. Fix by using dynamic xpath maps
instead which store both hardcoded and dynamic xpaths.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
mgmtd/mgmt_be_adapter.c