Thread (10 messages) 10 messages, 2 authors, 2024-03-04

Re: [PATCH net-next v1 3/4] tools/net/ynl: Extend array-nest for multi level nesting

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-03-04 16:32:55

On Mon, 4 Mar 2024 16:21:11 +0000 Donald Hunter wrote:
quoted
Yeah.. look at the example I used for type-value :)

https://docs.kernel.org/next/userspace-api/netlink/genetlink-legacy.html#type-value  
Apologies, I totally missed this. Is the intended usage something like this:

      -
        name: policy
        type: nest-type-value
        type-value: [ policy-id, attr-id ]
        nested-attributes: policy-attrs
Yes, I believe that'd be the right way. And then the policy-id and
attr-id are used as keys in the output / response dict.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help