Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/net/ynl/lib/
A Dynl.py349 def _decode_enum(self, rsp, attr_spec): argument
350 raw = rsp[attr_spec['name']]
352 i = attr_spec.get('value-start', 0)
353 if 'enum-as-flags' in attr_spec and attr_spec['enum-as-flags']:
362 rsp[attr_spec['name']] = value
369 if attr_spec["type"] == 'nest':
372 elif attr_spec['type'] == 'u8':
387 if not attr_spec.is_multi:
389 elif attr_spec.name in rsp:
394 if 'enum' in attr_spec:
[all …]

Completed in 3 milliseconds