mirror_frr/tests/lib
Renato Westphal 1a4bc045de lib, tests: major rework in the operational-data callbacks
The northbound infrastructure for operational data was subpar compared
to the infrastructure for configuration data. This commit addresses most
of the existing problems, making it possible to write operational-data
callbacks for more complex YANG models.

Summary of the changes:
* Add support for nested YANG lists.
* Add support for leaf-lists.
* Add support for leafs of type "empty".
* Introduce the "show yang operational-data XPATH" command, and write an
  unit test for it. The main purpose of this command is to make it
  easier to test the operational-data northbound callbacks.
* Introduce the nb_oper_data_iterate() function, that can be used
  to iterate over operational data. Make the CLI and sysrepo use this
  function.
* Since ConfD has a very peculiar API, it can't reuse the
  nb_oper_data_iterate() like the other northbound clients. In this
  case, adapt the existing ConfD callbacks to support the new features
  (and make some performance improvements in the process).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 18:28:53 -02:00
..
cli lib: introduce new northbound API 2018-10-27 16:16:12 -02:00
northbound lib, tests: major rework in the operational-data callbacks 2018-11-26 18:28:53 -02:00
test_buffer.c *: reindent 2017-07-17 14:04:07 +02:00
test_checksum.c babeld, lib, ospfd, tests: fmt fixes (cppcheck) 2018-06-18 17:52:56 +02:00
test_graph.c babeld, lib, ospfd, tests: fmt fixes (cppcheck) 2018-06-18 17:52:56 +02:00
test_graph.py lib: add DFS + DOT dumping to graph datastructure 2018-04-19 13:04:58 -04:00
test_graph.refout lib: add DFS + DOT dumping to graph datastructure 2018-04-19 13:04:58 -04:00
test_heavy_thread.c tests: Cleanup assumption that ALLOC could fail. 2018-08-11 19:58:23 +02:00
test_heavy_wq.c tests: Cleanup assumption that ALLOC could fail. 2018-08-11 19:58:23 +02:00
test_heavy.c *: Remove cvs control points 2017-12-05 17:28:12 -05:00
test_idalloc.c lib: Implement an allocator for 32 bit ID numbers 2018-11-09 21:50:34 +00:00
test_idalloc.py lib: Implement an allocator for 32 bit ID numbers 2018-11-09 21:50:34 +00:00
test_memory.c *: reindent 2017-07-17 14:04:07 +02:00
test_nexthop_iter.c lib: Isolate nexthop_group functions to nexthop_group.c 2018-03-09 11:07:41 -05:00
test_nexthop_iter.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
test_privs.c *: use frr_elevate_privs() (2/2: manual) 2018-08-14 20:02:05 +00:00
test_ringbuf.c lib: fix a few bugs in ring buffers 2018-01-03 14:04:43 -05:00
test_ringbuf.py tests: fix python test description for test_ringbuf 2018-03-05 19:44:41 +01:00
test_segv.c lib: add libunwind support for backtraces 2018-10-18 02:51:51 +02:00
test_sig.c *: reindent 2017-07-17 14:04:07 +02:00
test_srcdest_table.c tests: fix warning related to change in the hash API 2018-11-26 17:35:58 -02:00
test_srcdest_table.py tests: add pytest testrunners 2017-02-08 19:10:10 +01:00
test_stream.c isisd, ospfd, tests: Switch to using stream_resize_inplace 2018-08-22 07:58:54 -04:00
test_stream.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
test_stream.refout tests: reorganize tests hierarchically 2017-02-13 16:54:48 +01:00
test_table.c *: reindent 2017-07-17 14:04:07 +02:00
test_table.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
test_timer_correctness.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
test_timer_correctness.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
test_timer_performance.c babeld, lib, ospfd, tests: fmt fixes (cppcheck) 2018-06-18 17:52:56 +02:00
test_ttable.c lib: add table generator 2017-06-16 02:02:42 +00:00
test_ttable.py lib: add table generator 2017-06-16 02:02:42 +00:00
test_ttable.refout lib: add table generator 2017-06-16 02:02:42 +00:00
test_zlog.c tests: add unit test for zlog 2018-03-12 15:39:45 -04:00
test_zlog.py tests: add unit test for zlog 2018-03-12 15:39:45 -04:00
test_zmq.c lib: Address ZMQ lib TODOs 2017-11-23 12:50:27 +01:00
test_zmq.py tests: fix & run ZeroMQ test 2017-08-28 18:00:13 +02:00
test_zmq.refout lib: Address ZMQ lib TODOs 2017-11-23 12:50:27 +01:00