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

something go wrong with nexus 5672 #96

Closed
davidsome opened this issue Nov 30, 2015 · 2 comments
Closed

something go wrong with nexus 5672 #96

davidsome opened this issue Nov 30, 2015 · 2 comments

Comments

@davidsome
Copy link

Hi Leopoul
when I use ncclient's ExecCommand
such as show running config, show port-channel summary
it goes wrong in a very small chance.
where goes wrong?
Thanks.

Traceback (most recent call last):
  File "libs/netconflib.py", line 336, in <module>
print a.show_port_channel_summary()
  File "libs/netconflib.py", line 210, in show_port_channel_summary
return m.exec_command(["show port-channel summary"]).xml
  File "/usr/local/lib/python2.7/dist-packages/ncclient-0.4.5-py2.7.egg/ncclient/manager.py", line 209, in __exit__
self.close_session()
  File "/usr/local/lib/python2.7/dist-packages/ncclient-0.4.5-py2.7.egg/ncclient/manager.py", line 157, in wrapper
return self.execute(op_cls, *args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/ncclient-0.4.5-py2.7.egg/ncclient/manager.py", line 227, in execute
raise_mode=self._raise_mode).request(*args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/ncclient-0.4.5-py2.7.egg/ncclient/operations/session.py", line 28, in request
return self._request(new_ele("close-session"))
  File "/usr/local/lib/python2.7/dist-packages/ncclient-0.4.5-py2.7.egg/ncclient/operations/rpc.py", line 325, in _request
raise self._error
ncclient.transport.errors.SessionCloseError: Unexpected session close
@leopoul
Copy link
Member

leopoul commented Jan 30, 2016

Could you test with latest version (0.4.7)? Requirement for lxml has changed and may be related to your issue

Thnx
Leonidas

@davidsome
Copy link
Author

thx I will try it

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

2 participants