Snapshots

This scenario shows how to generate and user configuration snapshots.

Test Snapshots

Description

Multiple snapshots are generated by committing changes in the configuration. Snapshots are a very powerful way for making quick configuration changes.

Scenario

Step 1: Run command delete system snapshot all at DUT0 and expect this output: Step 2: Set the following configuration in DUT0:

set system description Initial
set system snapshots include-uncommented

Step 3: Set the following configuration in DUT0:

set system description Dummy1

Step 4: Run command show snapshot at DUT0 and expect this output:

Show output
      Snapshot        Comment
-----------------------------
20231123211933_commit <empty>

Step 5: Set the following configuration in DUT0:

set system description Dummy2

Step 6: Run command show snapshot at DUT0 and expect this output:

Show output
      Snapshot        Comment
-----------------------------
20231123211933_commit <empty>
20231123211935_commit <empty>

Step 7: Run command show running at DUT0 and check if output matches the following regular expressions:

Dummy2
Show output
# Teldat OSDx VM version v3.8.1.7-beta3
# Thu 23 Nov 2023 09:19:35 PM UTC
# Warning: Configuration has not been saved
set system description Dummy2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system snapshots include-uncommented

Step 8: Run command show changes snapshot 20231123211933_commit snapshot 20231123211935_commit at DUT0 and check if output matches the following regular expressions:

Dummy1
Show output
set system description Dummy1

Step 9: Set the following configuration in DUT0:

load snapshot 20231123211933_commit

Step 10: Run command show running at DUT0 and check if output matches the following regular expressions:

Dummy1
Show output
# Teldat OSDx VM version v3.8.1.7-beta3
# Thu 23 Nov 2023 09:19:36 PM UTC
# Warning: Configuration has not been saved
set system description Dummy1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system snapshots include-uncommented