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 ----------------------------- 20240124221456_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 ----------------------------- 20240124221456_commit <empty> 20240124221458_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 202401241058.f949bb7-v3.9.1.2-snapshot # Wed 24 Jan 2024 10:14:58 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 20240124221456_commit snapshot 20240124221458_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 20240124221456_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 202401241058.f949bb7-v3.9.1.2-snapshot # Wed 24 Jan 2024 10:14:59 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