Skip to content

netgroup/rose-srv6-data-plane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loss Monitoring gRPC

Prerequisites

gRPC Python is supported for use with Python 2.7 or Python 3.4 or higher. For the project pourpose we will use Python >= 3.4

Install virtualenv

$ pip install virtualenv

for more details regarding virtualenv ['https://virtualenv.pypa.io/en/latest/']

Create Virtual enviroment

$ virtualenv venv

Activate Virtual enviroment already created

$ source venv/bin/activate

this command must be executed every time, just before start to work with the project

Install requirements (gRPC and gRPC tools)

As soon the virtualenv is active you can install all the dependencies with the command below

$ pip install -r requirements.txt

Generate gRPC code

Clean the already generated gRPC code $ cd grpc-services/protos $ ./cleanup.sh

From the base directory of the project

$ cd grpc-services/protos
$ ./build.sh

Use of the generated gRPC code as module

first step set the env var PYTHONPATH

$ export PYTHONPATH="${PYTHONPATH}:./grpc-services/protos/gen-py:./twamp:../xdp_experiments/srv6-pfplm/"

then execute the script

$ python ppl/ppl_sender_server.py