mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
tools: ynl-gen: fix collecting global policy attrs
We look for attributes inside do.request, but there's another layer of nesting in the spec, look inside do.request.attributes. This bug had no effect as all global policies we generate (fou) seem to be full, anyway, and we treat full and empty the same. Next patch will change the treatment of empty policies. Reviewed-by: Donald Hunter <donald.hunter@gmail.com> Link: https://lore.kernel.org/r/20230824003056.1436637-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a149a3a13b
commit
dc2ef94d89
@ -978,7 +978,9 @@ class Family(SpecFamily):
|
||||
|
||||
for op_mode in ['do', 'dump']:
|
||||
if op_mode in op:
|
||||
global_set.update(op[op_mode].get('request', []))
|
||||
req = op[op_mode].get('request')
|
||||
if req:
|
||||
global_set.update(req.get('attributes', []))
|
||||
|
||||
self.global_policy = []
|
||||
self.global_policy_set = attr_set_name
|
||||
|
Loading…
Reference in New Issue
Block a user