sonic-net / DASH

Disaggregated APIs for SONiC Hosts
Apache License 2.0
77 stars 88 forks source link

[sai-gen] Update the default action of inbound routing type to use the latest one instead of deprecated one. #559

Closed r12f closed 2 months ago

r12f commented 2 months ago

The SAI action type generation follows the order of the actions defined in P4 and the first one will be the default action. The newly added tunnel decap actions in inbound routing table are not used as default value, as they are put in the end of the action list.

This change fixes the action order, which produces the right default action in the SAI header:

image