per_component_reboot_test - openconfig/featureprofiles GitHub Wiki

gNOI-3.2: Per-Component Reboot

Summary

Validate gNOI RPC can reboot specific components.

Procedure

  • Issue gnoi.system Reboot to chassis with no populated delay and subcomponents set to:
    • A field-removable linecard in the system
    • A control-processor (supervisor)
    • A field-removable fabric component in the system
  • TODO: For each component verify that the component has rebooted and the uptime has been reset.

Canonical OC

{
  "openconfig-platform:components": {
    "component": [
      {
        "config": {
          "name": "card1"
        },
        "name": "card1"
      }
    ]
  }
}

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.

TODO(OCPATH): Add component names to component paths.

paths:
    ## Config paths: N/A

    ## State paths
    ### FIXME: Add component description
    #/components/component/state/description:
    /components/component/state/name:
      platform_type: ["CONTROLLER_CARD", "FABRIC", "LINECARD"]
    /components/component/state/oper-status:
      platform_type: ["FABRIC"]
    /components/component/state/removable:
      platform_type: ["FABRIC", "LINECARD"]
    /interfaces/interface/state/name:
    /interfaces/interface/state/oper-status:

rpcs:
  gnoi:
    system.System.Reboot:
    system.System.RebootStatus:
⚠️ **GitHub.com Fallback** ⚠️