Home
last modified time | relevance | path

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

/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py799 def _encode_enum(self, attr_spec, value): argument
800 enum = self.consts[attr_spec['enum']]
801 if enum.type == 'flags' or attr_spec.get('enum-as-flags', False):
810 def _get_scalar(self, attr_spec, value): argument
814 if 'enum' in attr_spec:
815 return self._encode_enum(attr_spec, value)
816 if attr_spec.display_hint:
817 return self._from_string(value, attr_spec)
928 def _decode_enum(self, raw, attr_spec): argument
929 enum = self.consts[attr_spec['enum']]
[all …]