How does the Locking and Snapshot feature work in the Versa Director?
This article describes the Resource Locking and Snapshot feature in Versa Director.
Resource Locking is an important aspect of Network Management Systems. This feature prevents another user from making changes to the configuration of a resource until the completion of certain activities. The resource is unlocked and available for modification only after completion of the activity.
Versa Director allows this functionality at the device level and template level. A user can prevent other users from making changes to a device or a template by locking that particular device or template. An owner is a user who has locked the resource. The lock consists of these two modes:
These locks are persistent and are applicable even on a system restart and across user sessions. The lock itself can be released by the owner or the Administrator.
NOTE: In the Versa Director, locks are valid only from the perspective of the GUI and the REST layer. It is not applicable at the CLI level.
Once the device is locked, the Resource Locking feature prevents the user from making any configuration changes under the appliance context, and the REST API for making device configuration changes. Any attempt to apply a template on the device is rejected.
This image shows how to lock a resource.
Similarly, the Versa Director also supports Template locking. Once a template is locked, the contents of the template cannot be modified.
NOTE: The locked template can be re-applied on the device. This ensures that you can reuse the template for the application but prevent any changes to the template itself.
The need for a mechanism to restore older configurations is essential to a Network Management System.
Network elements sometimes support the ability to rollback a commit performed on the device. The idea is to revert a commit. This makes perfect sense at an appliance level where typically the changes are at the configuration level. Though an extension of this behavior at the Orchestrator level seems natural this has limitations and in many cases, is not possible either. The Versa Director is a much more complex system and these are some of the reasons:
What the Versa Director offers as an alternative is the ability to take device and template level snapshots which can be restored at will. This is a more reliable approach than an attempt to revert an arbitrary commit. The image below shows the screenshot of the snapshot features.
Device and template level Locks
| Device and template level Locks | Available in Release 16.1R1. |
| Device and template level Snapshots | Available in Release 16.1R2. |
NOTE: In the Director the locks are valid only from the perspective of the UI and the rest layer, they are not applicable at the CLI level.