CiscoDevNet / yang-explorer

An open-source Yang Browser and RPC Builder Application
Apache License 2.0
437 stars 177 forks source link

Issue in runner.py [ lines 104-120 ] - Unable to Parse RPC replies from Junos19.2 #121

Open SauravMar opened 4 years ago

SauravMar commented 4 years ago

I have been trying to use yang-explorer with Juniper MX series router with Junos version 19.2.

Steps:

Output:

_ERROR:django.request:Internal Server Error: /explorer/schema Traceback (most recent call last): File "/xxx/yang-explorer/v/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, callback_kwargs) File "/xxx/yang-explorer/server/explorer/views.py", line 297, in schema_handler return get_schema(request, req) File "/xxx/yang-explorer/server/explorer/utils/schema.py", line 70, in get_schema xml = Adapter.run_netconf(request.user.username, device, rpc_xml) File "/xxx/yang-explorer/server/explorer/utils/adapter.py", line 113, in runnetconf return session.run(rpc, lock) File "/xxx/yang-explorer/server/explorer/utils/runner.py", line 105, in run response = self.handle.get(data).xml AttributeError: 'NCElement' object has no attribute 'xml'**

Root Cause:

Fix: