metadata_validation_test - openconfig/featureprofiles GitHub Wiki
Validate the P4RT server handles Metadata set in Table Entry correctly.
- Enable P4RT on a single FAP by configuring an ID on the device and one or more interfaces.
- Instantiate a
primary
P4RT client and execute Client Arbitration and Set the Forwarding Pipeline using thewbb.p4info.pb.txt
file. - Write a
TableEntry
withMetadata
field set and validate correctMetadata
is retrieved inReadRequest
for the below scenarios:- Using Update Type as
INSERT
, Write a TableEntry with theMetadata
field set, and then validate correctMetadata
is returned using Read. - Using Update Type as
MODIFY
, update the existing TableEntry with a change in theMetadata
field, and then validate correctMetadata
is returned using Read. - Using Update Type as
DELETE
, delete the existing TableEntry and then validate the deletion of the TableEntry using Read.
- Using Update Type as
paths:
/components/component/integrated-circuit/config/node-id:
platform_type: ["INTEGRATED_CIRCUIT"]
/interfaces/interface/config/id:
rpcs:
gnmi:
gNMI.Get:
gNMI.Set:
gNMI.Subscribe: