summaryrefslogtreecommitdiff
path: root/lib/northbound.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-02-10 00:58:49 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-02-10 01:00:24 +0200
commitd94f80fbc4347cbbf5ee6ecbdf3682329db832dc (patch)
treedab7de197df1ae57c726701d24e8eaeb918a2a00 /lib/northbound.h
parent75d3e4336855c2631f0a7bbecb1548ef8a7a9fb7 (diff)
lib, mgmtd: fix processing of yang notifications
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>
Diffstat (limited to 'lib/northbound.h')
0 files changed, 0 insertions, 0 deletions