summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-03-14 02:20:47 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-19 02:41:42 +0300
commit17a55ddb19567642aa404f5525be3cf4425c6c1a (patch)
tree02653b9c6836124661a0ae51fb0a91c326850813 /include
parent70729af783af1d66944918b33e5b345b500a5399 (diff)
downloadlinux-17a55ddb19567642aa404f5525be3cf4425c6c1a.tar.xz
tools: ynl: rework policy access to support recursion
Donald points out that the current naive implementation using dicts breaks if policy is recursive (child nest uses policy idx already used by its parent). Lean more into the NlPolicy class. This lets us "render" the policy on demand, when user accesses it. If someone wants to do an infinite walk that's on them :) Show policy info as attributes of the class and use dict format to descend into sub-policies for extra neatness. Reviewed-by: Donald Hunter <donald.hunter@gmail.com> Link: https://patch.msgid.link/20260313232047.2068518-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions