-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels