Error on setting values with gNMI
Opened this issue · 0 comments
Lachstec commented
There is a weird error in the Hello World application when trying to set the name of the Ethernet1 interface. gNMI complains with the following error:
Error setting gNMI data on clab-realnet_security-ceos1 in topology security: GRPC ERROR Host: clab-realnet_security-ceos1:6030, Error: failed to apply: Request could not be completed because leafref at path "/interfaces/interface[name='Ethernet1']/name" had error "leaf value (Ethernet1) not present in reference path (../config/name)"
The Path is being set in the hello_world.py
in the app package.:
data = [
(
"openconfig:interfaces/interface[name=Ethernet1]",
{"config": {"description": test_message}},
)
]
Weirdly enough, when specifying the name in the dictionary, the error disappears and everything works as expected. Maybe keep an eye on this if further issues arise.