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 login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system snapshots include-uncommented
Step 3: Modify the following configuration lines in DUT0
:
set system description Dummy1
Step 4: Run command show snapshot
at DUT0
and expect this output:
Show output
Snapshot Comment ----------------------------- 20241007092449_commit <empty>
Step 5: Modify the following configuration lines in DUT0
:
set system description Dummy2
Step 6: Run command show snapshot
at DUT0
and expect this output:
Show output
Snapshot Comment ----------------------------- 20241007092449_commit <empty> 20241007092450_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 v4.2.1.0 # Mon 07 Oct 2024 09:24:50 +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 20241007092449_commit snapshot 20241007092450_commit
at DUT0
and check if output matches the following regular expressions:
Dummy1
Show output
set system description Dummy1
Step 9: Modify the following configuration lines in DUT0
:
set system description Dummy1
Step 10: Run command show running
at DUT0
and check if output matches the following regular expressions:
Dummy1
Show output
# Teldat OSDx VM version v4.2.1.0 # Mon 07 Oct 2024 09:24:51 +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