Closed sincerywaing closed 7 years ago
when we are trying to load_merge_candidate, if it crashes, we may want to know which command caused the crash.
napalm-ios has a similar pr: https://github.com/napalm-automation/napalm-ios/pull/178
Discussion in pyez: https://github.com/Juniper/py-junos-eznc/issues/759#issuecomment-315277539
[ *] Yes [ ] No
load a command caused error
(Paste verbatim output from pip freeze | grep napalm-junos between quotes below)
pip freeze | grep napalm-junos
0.11.0
(Paste verbatim output from show version and haiku between quotes below)
show version and haiku
any
load a sets of command that cause error (wrong command)
(Paste the complete traceback of the exception between quotes below)
error: syntax error error: syntax error error: syntax error error: syntax error error: syntax error, expecting <statement>, <attribute-name>, <flag-value>, or <identifier>
I am actually not sure the device returns that information.
Ok, it does. See the linked PR for a potential solution.
nice! Thanks @dbarrosop
Description of Issue/Question
when we are trying to load_merge_candidate, if it crashes, we may want to know which command caused the crash.
napalm-ios has a similar pr: https://github.com/napalm-automation/napalm-ios/pull/178
Discussion in pyez: https://github.com/Juniper/py-junos-eznc/issues/759#issuecomment-315277539
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
[ *] Yes [ ] No
Setup
load a command caused error
napalm-junos version
(Paste verbatim output from
pip freeze | grep napalm-junos
between quotes below)JunOS version
(Paste verbatim output from
show version and haiku
between quotes below)Steps to Reproduce the Issue
load a sets of command that cause error (wrong command)
Error Traceback
(Paste the complete traceback of the exception between quotes below)