yangson issueshttps://gitlab.nic.cz/labs/yangson/-/issues2022-11-29T10:19:04+01:00https://gitlab.nic.cz/labs/yangson/-/issues/7weird error message2022-11-29T10:19:04+01:00Ladislav Lhotkaweird error messageA type error in annotation value (just using an arbitrary string instead of an enum) leads to this message:
```
yangson.exceptions.AnnotationTypeError: {=9} value of 'ietf-yang-annotations:insert' expected enumeration
```
Everything look...A type error in annotation value (just using an arbitrary string instead of an enum) leads to this message:
```
yangson.exceptions.AnnotationTypeError: {=9} value of 'ietf-yang-annotations:insert' expected enumeration
```
Everything looks good except for the part `{=9}`.Ladislav LhotkaLadislav Lhotkahttps://gitlab.nic.cz/labs/yangson/-/issues/5Show ascii tree in the overview of examples2021-03-22T16:37:35+01:00Ladislav LhotkaShow ascii tree in the overview of examplesIt could be done as doctest using `yangson --tree`It could be done as doctest using `yangson --tree`Ladislav LhotkaLadislav Lhotkahttps://gitlab.nic.cz/labs/yangson/-/issues/4Expand Quick Start2021-03-22T16:38:39+01:00Ladislav LhotkaExpand Quick StartIt would be good to show validation of a subtree.It would be good to show validation of a subtree.Ladislav LhotkaLadislav Lhotkahttps://gitlab.nic.cz/labs/yangson/-/issues/3Not retriving orphan instance.2021-02-22T09:24:42+01:00MonalisaNot retriving orphan instance.GET https://10.102.3.37:8443/restconf/data/modulename:maincontainer/subcontainer/leafnode
While retrieving above mentioned leafnode for state data, where config is set to false(in yang file),it is throwing below exception while creating...GET https://10.102.3.37:8443/restconf/data/modulename:maincontainer/subcontainer/leafnode
While retrieving above mentioned leafnode for state data, where config is set to false(in yang file),it is throwing below exception while creating orphan instance in data.py
handle: <Handle _SelectorSocketTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run
self._callback(*self._args)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 669, in _read_ready
self._protocol.data_received(data)
File "/usr/lib/python3.5/asyncio/sslproto.py", line 506, in data_received
self._app_protocol.data_received(chunk)
File "/usr/local/lib/python3.5/dist-packages/jetconf-0.3.4.dev2+g1be0916.d20180116-py3.5.egg/jetconf/rest_server.py", line 115, in data_received
self.run_request_handler(headers, event.stream_id, None)
File "/usr/local/lib/python3.5/dist-packages/jetconf-0.3.4.dev2+g1be0916.d20180116-py3.5.egg/jetconf/rest_server.py", line 190, in run_request_handler
resp = h(headers, data, self.client_cert)
File "/usr/local/lib/python3.5/dist-packages/jetconf-0.3.4.dev2+g1be0916.d20180116-py3.5.egg/jetconf/http_handlers.py", line 366, in get_api_staging
http_resp = self._get(headers, api_pth, username, staging=True)
File "/usr/local/lib/python3.5/dist-packages/jetconf-0.3.4.dev2+g1be0916.d20180116-py3.5.egg/jetconf/http_handlers.py", line 260, in _get
n = self.ds.get_node_rpc(rpc1, staging)
File "/usr/local/lib/python3.5/dist-packages/jetconf-0.3.4.dev2+g1be0916.d20180116-py3.5.egg/jetconf/data.py", line 260, in get_node_rpc
state_root_n = sdh.schema_node.orphan_instance(state_handler_val)
File "/usr/local/lib/python3.5/dist-packages/yangson-1.3.22-py3.5.egg/yangson/schemanode.py", line 657, in orphan_instance
return ObjectMember(self.iname(), {}, val, None, self, val.timestamp)
AttributeError: 'str' object has no attribute 'timestamp'
Same behavior is observed in jukebox-example for song-count or album count leaf node.https://gitlab.nic.cz/labs/yangson/-/issues/2Type errors: do not show base type in error messages2017-05-30T13:34:41+02:00Ladislav LhotkaType errors: do not show base type in error messagesFor example: `expected ip-address` ~~`(union)`~~For example: `expected ip-address` ~~`(union)`~~Ladislav LhotkaLadislav Lhotkahttps://gitlab.nic.cz/labs/yangson/-/issues/1Is StatementNotFound exception needed?2023-10-16T00:55:24+02:00Ladislav LhotkaIs StatementNotFound exception needed?In yangson.module.statement.In yangson.module.statement.Ladislav LhotkaLadislav Lhotka