CiscoDevNet / yang-explorer

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

ERROR:django.request:Internal Server Error: /explorer/schema #78

Open jean-christophe-manciot opened 6 years ago

jean-christophe-manciot commented 6 years ago

@rustogi Latest:

Workflow:

[22/Sep/2017 13:51:32] ERROR [django.request] Internal Server Error: /explorer/schema
Traceback (most recent call last):
  File "/home/actionmystique/Ansible/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 "/home/actionmystique/Ansible/yang-explorer/server/explorer/views.py", line 297, in schema_handler
    return get_schema(request, req)
  File "/home/actionmystique/Ansible/yang-explorer/server/explorer/utils/schema.py", line 78, in get_schema
    sclist = xml[0][0][0][0]
  File "lxml.etree.pyx", line 1098, in lxml.etree._Element.__getitem__ (src/lxml/lxml.etree.c:47744)
IndexError: list index out of range

However, no issue communicating with the target device using the same profile:

http://cisco.com/ns/yang/cisco-nx-os-device?revision=2017-05-16&module=cisco-nx-os-device&deviations=cisco-nx-os-device-deviations ...

pgohite commented 6 years ago

Can you please provide full capability statement ? like you have posted partial one.

jean-christophe-manciot commented 6 years ago

@pgohite It is available in another report here.

pgohite commented 6 years ago

Looks like device does not support "ietf-netconf-monitoring" which is required to download model from the device. You may try to upload model manually.

jean-christophe-manciot commented 6 years ago

@pgohite I don't think it is possible to upload a model on NX-OSv 9k outside the list of provided mtx rpms. It seems that the next version of NX-OS 9k does not support it either.

pgohite commented 6 years ago

@jean-christophe-manciot agreed, however we can load feature model in yang explorer (client) manually which are supported by device already if those models are published somewhere. Only automatic sync from device is not possible due to non availability of "ietf-netconf-monitoring".

pegah-mnsn commented 6 years ago

my device supports ietf-netconf-monitoring. but still this error occurs while syncing. my device is Junos vsrx 17.3