subscription with req_mode POLL not fetching data
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
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
We could implement this functionality in the CLI by looping on user input if the req_mode is POLL.
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..