Skip to content

Releases: CESNET/libyang-python

v5.0.0

18 May 10:00

Choose a tag to compare

cffi: allow usage of libyang v5

Adapt CFFI bindings for libyang v5 (soversion 5.0.0+)

Update cdefs.h, source.c, and Python call sites to match the libyang
4.2.2 -> 5.0.0 API changes:
- parent field type changed from lyd_node_inner* to lyd_node* across
  all node structs
- lyd_any_value_str gained a LYD_FORMAT parameter
- lys_find_child signature was reworked
- lyd_node_any lost the union lyd_any_value/LYD_ANYDATA_VALUETYPE fields
- LYD_NEW_VAL_BIN / LYS_GETNEXT_WITHSCHEMAMOUNT removed

tests: fix failures caused by libyang v5 changes

Add missing ietf-inet-types YANG module to the test search path, as
libyang v5 no longer resolves it automatically. Update the module data
callback test to handle the ietf-inet-types dependency, and adjust
expected error paths to match libyang v5 output.

Signed-off-by: Antonio Prcela <antonio.prcela@gmail.com>

v3.3.0

13 Nov 17:47
v3.3.0

Choose a tag to compare

What's Changed

  • schema: adds ability to get when context nodes by @steweg in #148
  • schema: adds libyang.Enum to package by @steweg in #159
  • context: fix libyang abort/crash on parse_data validation error by @choppsv1 in #161
  • context: add option all_implemented and enable_imp_features by @hyberdk in #154
  • Fix logging bug, add access to temp_log_options(), and add logging tests. by @choppsv1 in #142

New Contributors

Full Changelog: v3.2.0...v3.3.0