Message ID | 20240219172525.71406-6-jiri@resnulli.us (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | netlink: specs: devlink: add the rest of missing attribute definitions | expand |
diff --git a/tools/net/ynl/lib/nlspec.py b/tools/net/ynl/lib/nlspec.py index fbce52395b3b..5e48ee0fb8b4 100644 --- a/tools/net/ynl/lib/nlspec.py +++ b/tools/net/ynl/lib/nlspec.py @@ -217,6 +217,8 @@ class SpecAttrSet(SpecElement): real_set = family.attr_sets[self.subset_of] for elem in self.yaml['attributes']: attr = real_set[elem['name']] + if 'type' in elem and attr.type != elem['type']: + attr = self.new_attr(elem, attr.value) self.attrs[attr.name] = attr self.attrs_by_val[attr.value] = attr