04-30-2021 06:16 AM
Hi,
Does anybody know if there is a way to force ydk gnmi subscription (ydk.gnmi.services import gNMIService / gNMIService.subscribe) to run in background instead of lock the terminal with the message:
"Started STREAM request monitoring
Enter 'end' to end monitoring".
I would want to receive the PID of the TCP socket instead.
Is this is even possible?
Thanks in advance
Regards
Fernando
Solved! Go to Solution.
05-01-2021 11:45 AM
Hello Fernando
Unfortunately current implementation of YDK does not allow multithreading. Thus all the processes and communications are synchronous.
If you are working in C++ or Go, you can control the subscribe callback function and do with the obtained telemetry data whatever you decide. This functionality does not work properly in Python, see issue #828 for details.
05-01-2021 11:45 AM
Hello Fernando
Unfortunately current implementation of YDK does not allow multithreading. Thus all the processes and communications are synchronous.
If you are working in C++ or Go, you can control the subscribe callback function and do with the obtained telemetry data whatever you decide. This functionality does not work properly in Python, see issue #828 for details.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide