You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're currently using the with statement in the NAPALM actions to automatically open a connection to the device before doing anything with it. However, this appears to not have the desired effect, because when there's a connection problem, it still runs the next line (which errors because it is not set correctly):
vagrant@st2vagrant:~$ st2 run napalm.get_config hostname=vsrx01
.
id: 599740dfc4da5f04e42e6cda
status: failed
parameters:
hostname: vsrx01
result:
exit_code: 0
result: '''bool'' object has no attribute ''get_config'''
stderr: 'st2.actions.python.NapalmGetConfig: ERROR ''bool'' object has no attribute ''get_config''
'
stdout: 'NAPALM didn''t catch this exception. Please, fill a bugfix on https://github.com/napalm-automation/napalm/issues
Don''t forget to include this traceback.
Turns out this is a bug in napalm_base which has been fixed and will be included in the next release of NAPALM.
So we should circle back and confirm this behavior is fixed once the next release comes out.
The text was updated successfully, but these errors were encountered:
Mierdin
changed the title
Make connection error logging better
Confirm napalm context manager bugfix
Aug 24, 2017
We're currently using the
with
statement in the NAPALM actions to automatically open a connection to the device before doing anything with it. However, this appears to not have the desired effect, because when there's a connection problem, it still runs the next line (which errors because it is not set correctly):Turns out this is a bug in napalm_base which has been fixed and will be included in the next release of NAPALM.
So we should circle back and confirm this behavior is fixed once the next release comes out.
The text was updated successfully, but these errors were encountered: