p4lang / tdi

Table-Driven Interface (TDI) for a P4-programmable backend device.
Apache License 2.0
40 stars 23 forks source link

Add python CLI byte stream support for table key (ipv6). #125

Closed weiqiand closed 1 year ago

weiqiand commented 1 year ago

Test Plan: Need to have ipv6 artifacts as table key: Here is possible testing cases:

  1. add tdi.fastpath.main.fastpath_control.flow_table_v6_icmp.add_with_p2p_fwd(vnic_id=0xd,src_ip=IPAddress("2001:db1::2:1"),dst_ip=IPAddress("2001:db1::10:1"),next_header=58,port=1,q_id=0x152)
  2. dump tdi.fastpath.main.fastpath_control.flow_table_v6_icmp.dump()
  3. delete tdi.fastpath.main.fastpath_control.flow_table_v6_icmp.(vnic_id=0xd,src_ip=IPAddress("2001:db1::2:1"),dst_ip=IPAddress("2001:db1::10:1"),next_header=58)