p4rt_device_down_test - openconfig/featureprofiles GitHub Wiki
Verify that the P4RT server handles Read/Write RPCs for a device/node as follows:
- Accepts them when the device is available and
- Returns a
NOT_FOUND
error when it is unavailable or down Point-1 P4RT Spec
- Connect ATE port-1 and port-2 to DUT port-1 and port-2 respectively.
- Configure P4RT id and node-id (device_id) with two interfaces on different LineCards.
- 1st Linecard
device_id = 111
- 2nd Linecard
device_id = 222
- 1st Linecard
- Disable the Linecard 2 with
device_id = 222
- For both
device_id = 111
anddevice_id = 222
- Send the WBB P4Info via the SetForwardingPipelineConfig
- Send RPC Write to install the
AclWbbIngressTableEntry
for LLDP (ethertype: 0x88CC)
- Verify that the write RPC is successful for
device_id = 111
- Validate Verify that the write RPC returns
NOT_FOUND
fordevice_id = 222
- Send RPC Read to read back the installed table entries.
- Verify that the read RPC is successful for
device_id = 111
- Validate Verify that the read RPC returns
NOT_FOUND
fordevice_id = 222
paths:
/components/component/integrated-circuit/config/node-id:
platform_type: ["INTEGRATED_CIRCUIT"]
/interfaces/interface/config/id:
rpcs:
gnmi:
gNMI.Get:
gNMI.Set:
gNMI.Subscribe:
- MFF