summaryrefslogtreecommitdiff
path: root/mgmtd/mgmt_testc.c
AgeCommit message (Collapse)Author
2025-01-18mgmtd: testc: add listen for datastore notificationsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-04-22tests: add topotest for mgmtd rpc processingIgor Ryzhov
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-03-13eigrpd, mgmtd, ospf6d: frr_fini is lastDonald Sharp
I noticed that ospf6d always had a linked list memory leak. Tracking it down shows that frr_fini() shuts down the memory system and prints out memory not cleaned up. eigrpd, mgmtd and ospf6d all called cleanup functions after frr_fini leaving memory leaked that was not really leaked. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2024-02-11lib, mgmtd: rework processing of yang notificationsIgor Ryzhov
Currently, YANG notification processing is done using a special type of callbacks registered in backend clients. In this commit, we start using regular northbound infrastructure instead, because it already has a convenient way of registering xpath-specific callbacks without the need for creating additional structures for each necessary notification. We also now pass a notification data to the callback, instead of a plain JSON. This allows to use regular YANG library functions for inspecting notification fields, instead of manually parsing the JSON. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-02-10lib, mgmtd: fix processing of yang notificationsIgor Ryzhov
Current code assumes that notification is always sent in stripped JSON format and therefore notification xpath starts at the third symbol of notification data. Assuming JSON is more or less fine, because this representation is internal to FRR, but the assumption about the xpath is wrong, because it won't work for not top-level notifications. YANG allows to define notification as a child for some data node deep into the tree and in this case notification data contains not only the notification node itself, but also all its parents. To fix the issue, parse the notification data and get its xpath from its schema node. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-02-01tests: add mgmtd backend notification testChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-01-30mgmtd: backend subscriptions to notificationsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>