Skip to content

Commit d0b08c9

Browse files
opcoder0prabhataravind
authored andcommitted
[docker-ptf] Add Tornado WSGI (sonic-net#21655)
Why I did it This PR adds tornado Tornado WSGI package to docker-ptf image. This will enable replacing the Flask based ExaBGP process API with tornado-based application. Tornado handles large number of requests with higher payload sizes automatically while Flask+Werkzeug requires additional setting changes which can be avoided keeping the code cleaner. Work item tracking Microsoft ADO (number only): 31250273 How I did it Added tornado package to the docker-ptf image. How to verify it Ran add, remove topology to check announce routes Ran route stress test to verify it is stable Which release branch to backport (provide reason below if selected) 201811 201911 202006 202012 202106 202111 202205 202211 202305 Tested branch (Please provide the tested image version) NA Description for the changelog [docker-ptf] Add Tornado WSGI This PR adds tornado Tornado WSGI package to docker-ptf image. This will enable replacing the Flask based ExaBGP process API with tornado-based application. Tornado handles large number of requests with higher payload sizes automatically while Flask+Werkzeug requires additional setting changes which can be avoided keeping the code cleaner.
1 parent 1507c7d commit d0b08c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dockers/docker-ptf/Dockerfile.j2

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ RUN rm -rf /debs \
161161
&& pip install pysubnettree \
162162
&& pip install paramiko \
163163
&& pip install flask \
164+
&& pip install tornado \
164165
&& pip install exabgp==3.4.17\
165166
&& pip install pyaml \
166167
&& pip install pybrctl pyro4 rpyc yabgp \
@@ -208,6 +209,7 @@ RUN pip3 install setuptools \
208209
&& pip3 install ipaddress \
209210
&& pip3 install pysubnettree \
210211
&& pip3 install paramiko \
212+
&& pip3 install tornado \
211213
&& pip3 install Flask \
212214
&& pip3 install exabgp \
213215
&& pip3 install pyaml \

0 commit comments

Comments
 (0)