Skip to content
Snippets Groups Projects
Commit 52b94843 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Corrected genproto script for l3_attackmitigator.

parent 76c09cab
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!42Interdomain Component
...@@ -36,7 +36,11 @@ tee proto/__init__.py << EOF > /dev/null ...@@ -36,7 +36,11 @@ tee proto/__init__.py << EOF > /dev/null
EOF EOF
python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto context.proto
python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto l3_attackmitigator.proto python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto l3_attackmitigator.proto
rm proto/context_pb2_grpc.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/context_pb2.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/l3_attackmitigator_pb2.py sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/l3_attackmitigator_pb2.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/l3_attackmitigator_pb2_grpc.py sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/l3_attackmitigator_pb2_grpc.py
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment