cisco-gnmi-python icon indicating copy to clipboard operation
cisco-gnmi-python copied to clipboard

subscription with req_mode POLL not fetching data

Open mahen-g opened this issue 5 years ago • 3 comments

With req_mode = POLL, we are not fetching data. With POLL, once the initial request is sent, we need to send out a trigger to to the switch to receive the data, which does not seem to be happening.

The subscribed path does reach the switch and is registered. However, since there is not follow up poll request, the switch is not returning the data.

Thanks, Mahendra

mahen-g avatar Jul 28 '20 19:07 mahen-g

This has been solved in yang.connector gnmi.py which uses cisco-gnmi.

  • Channel is opened in a thread with a verification function passed in (verification function of your choice)
  • You can then tell the thread to start verifying stream using method "Gnmi.notify_wait"
  • Max timeout can be set to stop the thread

miott avatar Jul 29 '20 00:07 miott

We could implement this functionality in the CLI by looping on user input if the req_mode is POLL.

remingtonc avatar Aug 10 '20 20:08 remingtonc

Post Initial sync for req_mode = POLL, switch is not sending any notification, How to sent the empty poll to switch for notification. Some tool like gnmi_cli uses pool_interval for same, do we have any like that.

Any help on this..

pm937925 avatar Jul 09 '21 09:07 pm937925