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

Error on setting values with gNMI #24

Open
Lachstec opened this issue Jul 12, 2024 · 0 comments
Open

Error on setting values with gNMI #24

Lachstec opened this issue Jul 12, 2024 · 0 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Lachstec
Copy link
Collaborator

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.

@Lachstec Lachstec added bug Something isn't working question Further information is requested labels Jul 12, 2024
@Lachstec Lachstec mentioned this issue Jul 12, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant