Not 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 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.
issue