Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jean-christophe-manciot opened this issue Sep 22, 2017 · 6 comments

Comments

@jean-christophe-manciot

@rustogi
Latest:

  • Ubuntu
  • yang explorer
  • dependencies
  • Target: NX-OSv 9k 7.0(3)I6(1)

Workflow:

  • Manage models tab
  • device tab
  • Select device profile
    select device profile
[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:

  • Build tab
  • Device settings tab
  • Profile: same sa before
  • Netconf
  • Capabilities
urn:ietf:params:netconf:base:1.0
urn:ietf:params:netconf:base:1.1
urn:ietf:params:netconf:capability:candidate:1.0
urn:ietf:params:netconf:capability:confirmed-commit:1.1
urn:ietf:params:netconf:capability:rollback-on-error:1.0
urn:ietf:params:netconf:capability:validate:1.1
urn:ietf:params:netconf:capability:writable-running:1.0

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
Copy link
Contributor

pgohite commented Oct 4, 2017

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

@jean-christophe-manciot
Copy link
Author

jean-christophe-manciot commented Oct 4, 2017

@pgohite
It is available in another report here.

@pgohite
Copy link
Contributor

pgohite commented Oct 7, 2017

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
Copy link
Author

jean-christophe-manciot commented Oct 9, 2017

@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
Copy link
Contributor

pgohite commented Oct 13, 2017

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants