Skip to content

Conversation

@jeremie6wind
Copy link
Contributor

Add support for the new major versions of libyang.so and libsysrepo.so.

Modify cffi/cdefs.h file according to sysrepo modifications:
- Remove sr_conn_flag_t enum values, sr_connect does not use the flags
  anymore. Add the context flag instead.
- Add sr_cache_running and sr_context_options.
Adapt SysrepoConnection init to use the new syrepo functions:
sr_cache_running and sr_context_options.
Allow only libsysrepo.so.8 only.

Signed-off-by: Jeremie Leska <[email protected]>
Add the possibility to add the no_printed flag when creating the sysrepo
session to avoid loading the context from the shared memory. Apply it by
default to keep the behavior as before.
The printed context is valuable to get a the sysrepo config/state
faster but some operations on the context itself do not work.
For instance printing and parsing a yang model will fail.

Link: https://github.com/sysrepo/sysrepo/blob/v4.2.10/README.md#printed-context

Signed-off-by: Jeremie Leska <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant