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

gNMI SetRequest and path wildcard use clarification #126

Open
xhoms opened this issue May 15, 2020 · 1 comment
Open

gNMI SetRequest and path wildcard use clarification #126

xhoms opened this issue May 15, 2020 · 1 comment

Comments

@xhoms
Copy link

xhoms commented May 15, 2020

The gNMI Specification section 3.3 (Retrieving Snapshots of State Information) specifies that the client MAY use wildcards in the Path. Section 3.4 (Modifying State) does not mention wildcards in the Path at all. Shall this be interpreted as no support of wildcards in SetRequests?

Example:
Imagine a gNMI client sending an OpenConfig-Interfaces update set operation with the request path /interfaces/interface[name=*]/subinterfaces[index=10]/enabled:false. Should this request be interpreted as disabling the subinterface with index 10 in all the interfaces in the device or should it trigger an error?

@robshakir
Copy link
Contributor

Hi!

Today, we don't explicitly require that paths in a SetRequest are fully resolved -- indeed, we allow them specifically for delete cases. There's clearly some complexity with handling this case though - and I'm not quite sure that its utility is worth incurring that complexity.

Do you envisage that this is a common operation that you expect users to need to support? @aashaikh @gcsl - do you have thoughts on whether this is something that we should clarify?

Cheers,
r.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants