An open API service indexing awesome lists of open source software.

https://github.com/netgroup/rose-srv6-data-plane


https://github.com/netgroup/rose-srv6-data-plane

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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

- Python >= 3.4
- pip (python-pip) [https://pip.pypa.io/en/stable/quickstart/]

### 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