-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netopeer2-cli cmd_establishpush() cannot be called multiple times for serving multiple notifications through separate callbacks #1600
Comments
Please include more details, what threads are you talking about and about what atomicity? |
Hi Michal, File name: netopeer2/cli/commands.c after handling of all command line args, following is the code:
The condition |
Ah, you are talking about netopeer2-cli. Then you are out of luck, we are still keeping it as a rather simple single-session NETCONF client and there is no point for it to create more notification threads. |
Hi Michal, Thanks for confirming. This can be done by the Currently |
What exactly do you mean by this? How do you want to separate them? There is only one |
Okay I can understand that the |
I think you will have to create several NETCONF sessions, each with a subscription for this use-case (so you cannot use |
Hi,
I'm trying to establish notifications with 2 different datastores which will be served by 2 different callbacks.
datastore running
withfilter-xpath <module_1>
--on-changedatastore operational
withfilter-xpath <module_2
> --on-changeby changing the
cmd_establishpush
() fornc_recv_notif_dispatch_data
(), I'm givingcallback_1
in case of module_1 andcallback_2
in case of module_2.But it is not creating 2 separate threads for handling above 2 different notifications. What I understood at high level is that atomicity is being maintained. But if there are different callbacks which can handle the data separately for different notifications, it should not affect the atomicity.
Can you tell how can I achieve it?
The text was updated successfully, but these errors were encountered: