Skip to content

factory_reset_test

Github Action edited this page Jun 10, 2024 · 1 revision

gNOI-6.1: Factory Reset

Summary

Performs Factory Reset with and without disk-encryption

Procedure

  • Create dummy files in the harddisk of the router using bash dd
  • Checks for disk-encryption status and performs reset on both the scenarios
  • 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
  • Connect to the router and check if the files in the harddisk are removed as a part of verifying Factory reset.

OpenConfig Path and RPC Coverage

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:
Clone this wiki locally