https://github.com/netgroup/rose-srv6-data-plane
https://github.com/netgroup/rose-srv6-data-plane
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netgroup/rose-srv6-data-plane
- Owner: netgroup
- License: apache-2.0
- Created: 2020-05-28T11:31:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T10:25:28.000Z (over 2 years ago)
- Last Synced: 2024-04-20T21:33:38.924Z (about 2 years ago)
- Language: Python
- Size: 260 KB
- Stars: 3
- Watchers: 7
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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