napalm-automation-community / napalm-panos

NAPALM driver for PAN-OS
Apache License 2.0
29 stars 31 forks source link

Add commit lock capability #93

Closed itdependsnetworks closed 2 years ago

itdependsnetworks commented 2 years ago

@hkam40k I leveraged your code for the lock and unlock functionality. However, I went with a pattern that is seen in napalm core. It does not seem to be totally solidified, but this is in line with that basic pattern.

itdependsnetworks commented 2 years ago

The locks get set, and removed correctly using the context manager or manually open/close image