cjones@cjones-mbp$ python test.py
TESTDEVICE-1 10.212.72.7 junos foo
Exception ignored in: <bound method NetworkDriver.__del__ of <napalm_junos.junos.JunOSDriver object at 0x1021b9f98>>
Traceback (most recent call last):
File "/Users/cjones/python/pwchanger/.venv/lib/python3.6/site-packages/napalm_base/base.py", line 69, in __del__
if self.is_alive()["is_alive"]:
File "/Users/cjones/python/pwchanger/.venv/lib/python3.6/site-packages/napalm_junos/junos.py", line 156, in is_alive
'is_alive': self.device._conn._session.transport.is_active() and self.device.connected
AttributeError: 'NoneType' object has no attribute '_session'
Im getting an AttributeError exception in the is_alive() function that is used for garbage collection in napalm-base 0.24.1.
Code:
Output: