Open mike-albano opened 3 years ago
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..." That is indeed the case. Looking at the GetRequest Type it is true that the Targets in question have not implemented support for this. These Targets are WiFi AP's from Arista & HPE so that explains the issue I'm seeing with the SetRequest.
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.