Home
last modified time | relevance | path

Searched refs:attr_spec (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/net/ynl/lib/
H A Dynl.py476 def _decode_enum(self, raw, attr_spec): argument
477 enum = self.consts[attr_spec['enum']]
478 if 'enum-as-flags' in attr_spec and attr_spec['enum-as-flags']:
490 def _decode_binary(self, attr, attr_spec): argument
491 if attr_spec.struct_name:
492 members = self.consts[attr_spec.struct_name]
497 elif attr_spec.sub_type:
498 decoded = attr.as_c_array(attr_spec.sub_type)
501 if attr_spec.display_hint:
502 decoded = NlAttr.formatted_string(decoded, attr_spec.display_hint)
[all …]