parent_component_validation - openconfig/featureprofiles GitHub Wiki
Validate that the parent components of an entity is correct before and after reboot
- Verify parent component of an interface is a Switch Chip
- [TODO]: Add parent component verification for other hardware entities
- Connect ATE port-1 to DUT port-1, and ATE port-2 to DUT port-2
- Validate that the correct parent component "SwitchChip" is reported for DUT port1 and port2
- Reboot the DUT and verify the DUT finished rebooting by checking the uptime
- Re-validate that the correct parent component "SwitchChip" is reported for DUT port1 and port2
The below yaml defines the OC paths and RPC intended to be covered by this test.
paths:
/components/component/state/parent:
platform_type: ["INTEGRATED_CIRCUIT"]
rpcs:
gnmi:
gNMI.Get:
{
"components": {
"component": [
{
"config": {
"name": "Ethernet-1/1-Port"
},
"name": "Ethernet-1/1-Port",
"state": {
"parent": "SwitchChip1/0"
}
},
{
"config": {
"name": "SwitchChip1/0"
},
"name": "SwitchChip1/0"
}
]
},
"interfaces": {
"interface": [
{
"config": {
"name": "ethernet-1/1"
},
"name": "ethernet-1/1",
"state": {
"hardware-port": "Ethernet-1/1-Port"
}
}
]
}
}
- FFF