CESNET / libnetconf2-cpp

C++ bindings for the libnetconf2 library
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Is there a way to recieve a NETCONF notification without using `nc_recv_notif`? #5

Open safesintesi opened 2 months ago

safesintesi commented 2 months ago

Checking the source code I see that RPCs are handled with impl::do_rpc which autonomously waits for the reply, but I see no wrap for notifications and relative subscriptions.

Is this something not yet implemented or am I missing something?

Is there any way to receive notifications from a NETCONF agent without using a custom wrapper of the C library's functions?

safesintesi commented 2 months ago

Browsing your code I see that here you explicitly say that notifications in your netconf-cli are not supported yet, so I guess nc_recv_notif is not wrapped yet. Is this something on your future radar?

jktjkt commented 2 months ago

Sorry for a late reply. So far we have not needed this feature, and that's why it's missing. Patches are welcome.

safesintesi commented 2 months ago

Hi Jan, thank you for the interest. I would love to contribute and I have already prepared a patch for basic notification support. The only problem is that as for #3 I cannot sign in to libnetconf2-cpp's gerrit with my github credentials. Any help would be great.

P.S. I get Forbidden on every attempt.