Hi all,
RFC8526 NETCONF NMDA extensions includes a max-depth parameter described as
follows:
description
"For each node selected by the filters, this parameter
selects how many conceptual subtree levels should be
returned in the reply. If the depth is 1, the reply
includes just the selected nodes but no children. If the
depth is 'unbounded', all descendant nodes are included.";
I'm a little unclear on the use-cases for max-depth = 1, or what happens for a
list.
Here is an example. For this module:
module: app
+--rw basket
+--rw name? string
+--rw contents* string // leaf-list
+--rw fruits* [name] // list
| +--rw name string
| +--rw size? string
Imagine we have the following instance data on the server:
<basket>
<contents>fruits</contents>
<contents>vegetables</contents>
<fruits>
<name>apples</name>
<size>XL</size>
...
</fruits>
<fruits>
<name>orange</name>
<size>M</size>
</fruits>
</basket>
What is returned for a <get-data> with a subtree filter of /basket/fruits and a
max-depth = 1? (is the list key somehow considered part of the selected nodes
and not a child?)
[I think maybe the same question applies for a filter of /basket and a
max-depth of 2]
There isn't really any use-case for max-depth for leafs or leaf-lists right?
(just the leaf or leaf-list would always be returned since there are no
descendants)
Jason (he/him)
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod