-
Notifications
You must be signed in to change notification settings - Fork 17
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
Usage of CONFIG in gNMI SetRequest() #11
Comments
Hi @mike-albano This gNMI Ansible plugin is taking a configuration snapshot before and after the SetRequest is executed. This is required to interwork with Ansible to enable the following features: change indicator, diff-mode and backup. If the device does not support GET type=CONFIG it implies that the OpenConfig gNMI standard is incompletely implemented. Removing the "type=config" would result in the risk, that the node returns both config and state while change indicator/diff-mode result in misleading results. About the other issue, it would be good to understand, what capabilities your device is supporting. This Ansible plugin supports JSON and JSON IETF encoding - but must be set accordingly. To have a deeper look, please provide the following:
Best would be to have access to the DUT to do some basic testing/integration... /wiso |
Missed the notification of your reply; thanks for the explanation. "If the device does not support GET type=CONFIG..." Since it appears that the functionality relies on this portion of the gNMI Specification being implemented, I'd say this is OK to close. |
Hi @mike-albano, any update on the above... If not I would like to close that item. |
Attempting a gNMI SetRequest operation, it looks like the SetRequest is using the CONFIG DataType from GetRequest.
For example, using these path and values in the example playbook:
I get the following traceback:
If I remove "type=config" from here the "unsupported request type: CONFIG" error goes away. I am instead hitting another error, though that error may be completely unrelated (including that below in case it helps):
...where tester-05.foo.net is the hostname assigned to the leaf referenced above.
The text was updated successfully, but these errors were encountered: