cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

ydk.gnmi.services.subscribe in background

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

1 ACCEPTED SOLUTION

Accepted Solutions

yangorelik
Rising star
Rising star

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.

Yan Gorelik
YDK Solutions

View solution in original post

1 REPLY 1

yangorelik
Rising star
Rising star

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.

Yan Gorelik
YDK Solutions
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: