Open
Description
Hello,
I am running a PTF Python program using simple_switch_grpc and the P4Runtime API. The program is relatively simple, but I am seeing the following error.
base_test.P4RuntimeWriteException: Error(s) during Write:
* At index 0: INVALID_ARGUMENT, 'Bytestring provided does not fit within 0 bits'
I am not sure what this means or how it can be fixed. Is there something that needs to be changed for the PTF test?
The only thing special about the P4 program are the following lines:
@p4runtime_translation("p4.org/psa/v1/PortId1_t" , 32) type PortIdUint_t PortId1_t;
@p4runtime_translation("p4.org/psa/v1/PortId2_t" , bit < 32 >) type PortIdUint_t PortId2_t;
@p4runtime_translation("p4.org/psa/v1/PortId3_t" , string) type PortIdUint_t PortId3_t;
issue2283_1-bmv2.json.txt
issue2283_1-bmv2.p4.txt
issue2283_1-bmv2.p4info.txt
issue2283_1-bmv2.py.txt
test_log.txt
Metadata
Metadata
Assignees
Labels
No labels