summaryrefslogtreecommitdiff
path: root/lib/yang.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-11-13 20:29:05 -0200
committerRenato Westphal <renato@opensourcerouting.org>2018-11-26 18:28:53 -0200
commit9c47203310828d015de45eceabce074133220435 (patch)
tree14ae686884e0aa57b07701b413cec3b604085a96 /lib/yang.c
parent1a4bc045deac52e5c0b66d151dbbce8cc3675497 (diff)
ripd: fix operational-data northbound callbacks
The get_next() and lookup_entry() callbacks should return structures of the same type. This is because the returned list entry is passed to the get_elem() callbacks, which must assume the 'list_entry' parameter is of a single type. This wasn't a problem before because we'd always call lookup_entry() after get_next(), but it was realized this isn't necessary when iterating sequentially over a YANG list. Now we need to ensure that the get_elem() callbacks work with list entries returned by either get_next() or lookup_entry(). Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/yang.c')
0 files changed, 0 insertions, 0 deletions