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.py781 def _encode_enum(self, attr_spec, value): argument
782 enum = self.consts[attr_spec['enum']]
783 if enum.type == 'flags' or attr_spec.get('enum-as-flags', False):
792 def _get_scalar(self, attr_spec, value): argument
796 if 'enum' in attr_spec:
797 return self._encode_enum(attr_spec, value)
798 if attr_spec.display_hint:
799 return self._from_string(value, attr_spec)
910 def _decode_enum(self, raw, attr_spec): argument
911 enum = self.consts[attr_spec['enum']]
[all …]