Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscription with req_mode POLL not fetching data #83

Open
mahen-g opened this issue Jul 28, 2020 · 3 comments
Open

subscription with req_mode POLL not fetching data #83

mahen-g opened this issue Jul 28, 2020 · 3 comments
Labels
cli enhancement New feature or request feature

Comments

@mahen-g
Copy link

mahen-g commented Jul 28, 2020

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

@miott
Copy link
Collaborator

miott commented Jul 29, 2020

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

@remingtonc
Copy link
Contributor

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

@remingtonc remingtonc added cli enhancement New feature or request feature labels Aug 10, 2020
@pm937925
Copy link

pm937925 commented Jul 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request feature
Projects
None yet
Development

No branches or pull requests

4 participants