Skip to content

Commit

Permalink
[P4RT] Update mirror_session_table to support new action `mirror_wi…
Browse files Browse the repository at this point in the history
…th_vlan_tag_and_ipfix_encapsulation`, Remove non-programmable action parameters from `mirror_with_vlan_tag_and_ipfix_encapsulation` action, Fix P4RT table schema, modify action name for ipv6_tunnel_termination_table & Add `l2_multicast_passthrough` action to supported actions. (sonic-net#479)

Co-authored-by: kishanps <kishanps@google.com>
  • Loading branch information
divyagayathri-hcl and kishanps authored Aug 21, 2024
1 parent 82e9fcb commit c9dcabe
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions p4rt_app/p4runtime/p4info_verification_schema.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,30 @@ tables {
parameters { name: "tos" bitwidth: 8 }
parameters { name: "ttl" bitwidth: 8 }
}
actions {
name: "mirror_with_vlan_tag_and_ipfix_encapsulation"
parameters { name: "monitor_port" format: STRING }
parameters { name: "monitor_failover_port" format: STRING }
parameters { name: "mirror_encap_src_mac" format: MAC }
parameters { name: "mirror_encap_dst_mac" format: MAC }
parameters {
name: "mirror_encap_vlan_id"
format: HEX_STRING
bitwidth: 16
}
parameters { name: "mirror_encap_dst_ip" format: IPV6 }
parameters { name: "mirror_encap_src_ip" format: IPV6 }
parameters {
name: "mirror_encap_udp_src_port"
format: HEX_STRING
bitwidth: 16
}
parameters {
name: "mirror_encap_udp_dst_port"
format: HEX_STRING
bitwidth: 16
}
}
}
tables {
name: "multicast_router_interface_table"
Expand All @@ -97,6 +121,7 @@ tables {
name: "set_multicast_src_mac"
parameters { name: "src_mac" format: MAC }
}
actions { name: "l2_multicast_passthrough" }
}
tables {
name: "neighbor_table"
Expand Down Expand Up @@ -130,10 +155,10 @@ tables {
name: "set_ip_nexthop_and_disable_rewrites"
parameters { name: "router_interface_id" format: STRING }
parameters { name: "neighbor_id" format: IPV6 }
parameters { name: "disable_decrement_ttl" bitwidth: 1}
parameters { name: "disable_src_mac_rewrite" bitwidth: 1}
parameters { name: "disable_dst_mac_rewrite" bitwidth: 1}
parameters { name: "disable_vlan_rewrite" bitwidth: 1}
parameters { name: "disable_decrement_ttl" bitwidth: 1 }
parameters { name: "disable_src_mac_rewrite" bitwidth: 1 }
parameters { name: "disable_dst_mac_rewrite" bitwidth: 1 }
parameters { name: "disable_vlan_rewrite" bitwidth: 1 }
}
}
tables {
Expand Down Expand Up @@ -171,10 +196,8 @@ tables {
tables {
name: "ipv6_tunnel_termination_table"
match_fields { name: "dst_ipv6" format: IPV6 type: TERNARY }
actions {
name: "mark_for_tunnel_decap_and_set_vrf"
parameters { name: "vrf_id" format: STRING }
}
match_fields { name: "src_ipv6" format: IPV6 type: TERNARY }
actions { name: "tunnel_decap" }
}
tables {
name: "disable_vlan_checks_table"
Expand Down

0 comments on commit c9dcabe

Please sign in to comment.