mirror_frr/tests/lib
Christian Hopps e8648a0c72 lib: add flag to have libyang load internal ietf-yang-library module
Mgmtd makes use of libyang's internal ietf-yang-library module to add
support for said module to FRR management. Previously, mgmtd was loading
this module explicitly; however, that required that libyang's
`ietf-yang-library.yang` module definition file be co-located with FRR's
yang files so that it (and ietf-datastore.yang) would be found when
searched for by libyang using FRRs search path. This isn't always the
case depending on how the user compiles and installs libyang so mgmtd
was failing to run in some cases.

Instead of doing it the above way we simply tell libyang to load it's
internal version of ietf-yang-library when we initialize the libyang
context.

This required adding a boolean to a couple of the init functions which
is why so many files are touched (although all the changes are minimal).

Signed-off-by: Christian Hopps <chopps@labn.net>
2024-10-07 03:32:44 +00:00
..
cli lib: add flag to have libyang load internal ietf-yang-library module 2024-10-07 03:32:44 +00:00
northbound lib: add flag to have libyang load internal ietf-yang-library module 2024-10-07 03:32:44 +00:00
cxxcompat.c lib: Remove getopt.c and getopt1.c 2023-03-28 10:07:38 -04:00
fuzz_zlog_inputs.py *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
fuzz_zlog.c *: Convert thread_master_XXX functions to event_master_XXX 2023-03-24 08:32:17 -04:00
script1.lua tests: Add more examples to get_result 2021-07-18 06:32:03 +08:00
subdir.am vtysh, lib: preprocess CLI graphs 2024-07-31 08:08:53 -04:00
test_assert.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_assert.py lib: rework how we "override" assert() 2021-05-02 16:27:17 +02:00
test_atomlist.c tests: fix TSAN warnings in atomlist test 2024-06-20 15:44:46 +02:00
test_atomlist.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_buffer.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_checksum.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_darr.c lib: darr: add free with element cleanup functions 2024-06-06 22:38:48 -04:00
test_darr.py lib: darr: add new access and str functions 2023-12-28 17:52:57 +00:00
test_frrlua.c tests: Check if built-in Lua functions are working 2024-09-24 13:40:37 +03:00
test_frrlua.py tests: put lua scripting unit tests behind flag 2021-06-25 17:29:15 +08:00
test_frrscript.c lib: Update int and ll decoders with new MTYPE 2023-11-20 20:45:02 -05:00
test_frrscript.py tests: put lua scripting unit tests behind flag 2021-06-25 17:29:15 +08:00
test_graph.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_graph.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_graph.refout lib: add DFS + DOT dumping to graph datastructure 2018-04-19 13:04:58 -04:00
test_grpc.cpp lib: add flag to have libyang load internal ietf-yang-library module 2024-10-07 03:32:44 +00:00
test_grpc.py tests: skip grpc test if frr not installed 2022-03-29 16:16:35 -04:00
test_heavy_thread.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_heavy_wq.c lib: Remove unused WQ_RETRY_XXX enums 2023-11-03 18:06:01 +00:00
test_heavy.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_idalloc.c *: config.h or zebra.h is the first #include 2019-06-13 13:35:33 +02:00
test_idalloc.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_memory.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_nexthop_iter.c tests: fix strncpy warning 2023-07-24 19:03:24 -04:00
test_nexthop_iter.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_nexthop.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_nexthop.py tests: add unit test for nexthop comparisons 2021-05-04 15:51:01 -04:00
test_ntop.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_ntop.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_plist.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_prefix2str.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_prefix2str.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_printfrr.c tests: Extend prefix_sg print UT for IPv6 2024-05-31 10:27:22 -04:00
test_printfrr.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_privs.c *: remove sys/stat.h from zebra.h 2024-01-09 12:39:23 -05:00
test_resolver.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_ringbuf.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_ringbuf.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_segv.c * : include event ptr in event_execute api 2023-07-25 10:17:48 -04:00
test_seqlock.c tests: silence TSAN warning on test_seqlock exit 2024-06-20 11:16:10 +02:00
test_sig.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_skiplist.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_srcdest_table.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_srcdest_table.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_stream.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_stream.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_stream.refout tests: reorganize tests hierarchically 2017-02-13 16:54:48 +01:00
test_table.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_table.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_timer_correctness.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_timer_correctness.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_timer_performance.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_ttable.c *: Create termtable specific temp memory 2024-09-01 13:07:46 -04:00
test_ttable.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_ttable.refout lib: add table generator 2017-06-16 02:02:42 +00:00
test_typelist.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_typelist.h lib: fix _hash_member() crash w/ empty hash 2023-04-21 16:30:32 +02:00
test_typelist.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_versioncmp.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_versioncmp.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_xref.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_xref.py tests: add unit test for xrefs 2021-02-01 17:28:11 +01:00
test_zlog.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_zlog.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_zmq.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_zmq.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_zmq.refout lib: Address ZMQ lib TODOs 2017-11-23 12:50:27 +01:00