原项目位于:https://github.com/simula/P4-OvS/tree/p4/tests
尝试搭建OVS-INT环境,搭建带内网络遥测应用。
以下为该github项目。
环境:虚拟机搭建ubuntu 20.04
安装python2.7及python3,java、c++、c等环境均已配置好
以下为总体环境配置,不过在进行这之前需要按照该github项目中getting-started的步骤安装好P4C以及OVS(注意ovs的版本别安装错误,否则不支持),之后若继续更进会更新有关INT配置的内容
apt-get update
sudo apt-get install -y automake cmake libjudy-dev libgmp-dev libpcap-dev libboost-all-dev libevent-dev libtool flex bison pkg-config g++ libssl-dev libnanomsg-dev libjudy-dev libreadline-dev valgrind libtool-bin libboost-dev libboost-system-dev libboost-thread-dev
sudo apt-get install -y python3-pip python3-dev
sudo pip3 install nnpy
# == Thrift ==
cd "$BASE_DIR"
git clone https://github.com/apache/thrift
cd thrift
git checkout v0.13.0
./bootstrap.sh
./configure --prefix=/usr
make
sudo make install
# == PI ==
sudo apt install -y libnanomsg-dev \
libprotobuf-dev protobuf-compiler protobuf-compiler-grpc \
libgrpc++-dev libgrpc-dev libgc-dev
cd "$BASE_DIR"
git clone https://github.com/osinstom/PI # *NOT* upstream: https://github.com/p4lang/PI
cd PI
git checkout p4-ovs
git submodule update --init
./autogen.sh
./configure --prefix=/usr --with-proto --with-fe-cpp --with-cli --with-internal-rpc --with-gnu-ld
make
sudo make install
# == P4-OvS ==
cd "$BASE_DIR"
git clone https://github.com/simula/P4-OvS
cd P4-OvS
git remote add upstream https://github.com/osinstom/P4-OvS.git
git checkout dreibh/build-fix-16Dec2020
./boot.sh
./configure
make
有关该项目的架构设计:https://www.cnblogs.com/noOccupied/p/14837381.html