cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
836
Views
5
Helpful
1
Replies

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
Spotlight
Spotlight

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
Spotlight
Spotlight

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