-
Notifications
You must be signed in to change notification settings - Fork 2
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
add guideline on container parent for each list #35
Comments
We adopted the enclosing container convention for all lists in OpenConfig models, primarily because the feedback from server implementors (device vendors) was that it simplified retrieval semantics such as:
I'd suggest to make sure we get implementor / vendor feedback before removing the guidance for enclosing containers -- we're trying to do the same with the engr teams at some of the vendors. |
@aashaikh but surely this has to do with the transport, right? The vendors solved the lack of a retrieve-keys-of-list by mangling what get does on a list but I suppose this isn't the standard way get operates on a list. Does gRPC, NETCONF and RESTCONF behave the same way? Different possibilities of solving this? |
@plajjan I'm not sure this has as much to do with the RPC protocol as with how the backend server / device implementations interpret a |
@aashaikh ah yes, I recognise this from XR which has the same construct in their proprietary models and so do Huawei. JUNOS however does not nor do ALU / Nokia SR-OS. |
My info on JUNOS behavior is different :-) (from talking to engineers, i have not tried it myself yet to confirm). I suspect there is the added wrinkle of how the behavior might be affected when the system is supporting use of a non-native model which requires some form of mapping or translation (e.g., OpenConfig or IETF). |
@aashaikh ok. Yeah, I was just thinking of their proprietary YANG model which doesn't contain empty containers around lists. Now I'm looking at the YANG model of a translated configuration, uh non-native model, that we have for some custom stuff. It's lacking containers-around-lists but perhaps it wouldn't support get-keys-from-list. Unfortunately I don't have one of these routers spun up right now so can't test how it actually behaves. |
Not going to add guideline to overload protocol operations Added following text: A non-presence container is used to organize data into specific subtrees. Example using container wrappers:
Example without container wrappers:
Use of non-presence containers to organize data is a subjective matter |
fixed in draft-07 |
What is the convention for NP-containers for lists
OR no container parent
The text was updated successfully, but these errors were encountered: