Is this the intended effect of @name
annotations when generating P4Info files?
#2716
Labels
control-plane
Topics related to the control-plane or P4Runtime.
question
This is a topic requesting clarification.
I was inspired by a recent issue asking about compiler internal passes renaming action parameters (or not) to find out what the P4Info file generated contains when
@name
annotations are used on (directionless) action parameters, and several other language constructs, including tables, table key fields, table action names in theactions
list, an action definition itself, and a control definition.The attached program
name_annotations_to_p4info.p4.txt
is a v1model architecture P4_16 program, andname_annotations_to_p4info.p4.p4info.txt
is the P4Info file generated via the following command:@antoninbas @vgurevich (and anyone else interested) Looking at the generated P4Info file, are these the names you would expect the control plane API to see from this P4 source program?
name_annotations_to_p4info.p4.txt
name_annotations_to_p4info.p4.p4info.txt
The text was updated successfully, but these errors were encountered: