NAVT(Network Address Vlan Translation) write by p4-16. e.g. VID:100, 192.168.0.1(inside) <=> 10.1.0.1 (outside)
# Please go to the top directory
p4c --std p4_16 -b bmv2 --p4runtime-files build.bmv2/switch.p4.p4info.txt -o build.bmv2 p4src/switch.p4
sudo ./script/playground.sh
open configuer
simple_switch_CLI
# input mac entry
table_add dmac dmac_hit 0x020304050601 => 1
table_add dmac dmac_hit 0x020304050611 => 2
table_add dmac dmac_hit 0x020304050622 => 2