A starting point for P4 projects using the P4 behavioral model version 2.
1. Install the behavioral model
git clone https://github.com/p4lang/behavioral-model.git bmv2
cd bmv2
./install_deps.sh
./autogen.sh
./configure
make
2. Install the BM compiler
git clone https://github.com/p4lang/p4c-bm.git p4c-bmv2
sudo pip install -r requirements.txt
sudo python setup.py install
the path where the behavioral model was installed.
make
sudo ./1sw_demo.py --behavioral-exe simple_router --json simple_router.json