Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takehaya/p4-navt
NAVT(Network Address Vlan Translation) write by p4-16.
https://github.com/takehaya/p4-navt
network-programming p4 p4lang
Last synced: about 1 month ago
JSON representation
NAVT(Network Address Vlan Translation) write by p4-16.
- Host: GitHub
- URL: https://github.com/takehaya/p4-navt
- Owner: takehaya
- License: apache-2.0
- Created: 2020-11-22T13:43:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-04T23:41:37.000Z (about 4 years ago)
- Last Synced: 2023-03-01T02:17:35.308Z (almost 2 years ago)
- Topics: network-programming, p4, p4lang
- Language: P4
- Homepage:
- Size: 68.4 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# p4-navt
NAVT(Network Address Vlan Translation) write by p4-16.
e.g. VID:100, 192.168.0.1(inside) <=> 10.1.0.1 (outside)## Build
```
# 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
```## Run
```
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
```