Skip to content

Commit 552a366

Browse files
jktjktpeckato1
authored andcommitted
We don't support sysrepo v3 yet
That version introduced some backward-incompatible changes to the way how operational data are treated, especially in presence of "discards" of this data. It's a breaking behavior, and before we release a fix, let's pin the version to something which still works. The latest sysrepo semi-release is v 2.12.0, which is unfortunately not tagged. Change-Id: I3673de9893d6e806926767a72b1ef83ee62bd610
1 parent a73ffe1 commit 552a366

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.zuul.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- name: github/CESNET/libyang
77
override-checkout: devel
88
- name: github/sysrepo/sysrepo
9-
override-checkout: devel
9+
override-checkout: cesnet/2024-10-before-oper-changes
1010
- name: github/onqtam/doctest
1111
override-checkout: v2.4.8
1212
- name: github/rollbear/trompeloeil
@@ -17,7 +17,7 @@
1717
- name: github/CESNET/libyang
1818
override-checkout: devel
1919
- name: github/sysrepo/sysrepo
20-
override-checkout: devel
20+
override-checkout: cesnet/2024-10-before-oper-changes
2121
- name: github/onqtam/doctest
2222
override-checkout: v2.4.11
2323
- name: github/rollbear/trompeloeil

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ option(WITH_EXAMPLES "Build examples" ON)
2828

2929
find_package(PkgConfig)
3030
pkg_check_modules(LIBYANG_CPP REQUIRED libyang-cpp>=3 IMPORTED_TARGET)
31-
pkg_check_modules(SYSREPO REQUIRED sysrepo>=2.12.0 IMPORTED_TARGET)
31+
pkg_check_modules(SYSREPO REQUIRED sysrepo>=2.12.0 sysrepo<3 IMPORTED_TARGET)
3232
set(SYSREPO_CPP_PKG_VERSION "3")
3333

3434
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ It uses RAII for automatic memory management.
99

1010
## Dependencies
1111
- [sysrepo](https://github.com/sysrepo/sysrepo) - the `devel` branch (even for the `master` branch of *sysrepo-cpp*)
12+
- we temporarily require pre-v3 sysrepo which introduced backward-incompatible changes to operational data handling
1213
- [libyang-cpp](https://github.com/CESNET/libyang-cpp) - C++ bindings for *libyang*
1314
- C++20 compiler (e.g., GCC 10.x+, clang 10+)
1415
- CMake 3.19+

0 commit comments

Comments
 (0)