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 ----------------------------- 20240620163212_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 ----------------------------- 20240620163212_commit <empty> 20240620163213_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.10.1.5 # Thu 20 Jun 2024 16:32:14 UTC +00:00 # 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 20240620163212_commit snapshot 20240620163213_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 20240620163212_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.10.1.5 # Thu 20 Jun 2024 16:32:15 UTC +00:00 # 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