factory_reset_test - openconfig/featureprofiles GitHub Wiki
Performs Factory Reset
- Create a sample file in the harddisk of the router using gNOI PUT RPC
- Secure ZTP server should be up and running in the background for the router to boot up with the base config once factory reset command is sent on the box.
- Send out Factory reset via GNOI Raw API
- Wait for the box to boot up via Secure ZTP
- The base config is updated on the box via Secure ZTP
- Wait for the box to boot up via Secure ZTP
- Send a gNOI file STAT RPC to check if the file in the harddisk are removed as a part of verifying Factory reset.
- Check startup-config file exists in mount path.
- Perform the same steps are
Scenario 1
for startup-config file.
The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.
rpcs:
gnoi:
factory_reset.FactoryReset.Start:
file.File.Put:
file.File.Stat: