[docker-ptf] add gnmi python client (#4928)
For telemetry regression test we need gnmi client to be present on ptfdocker. Gnmi-server will be present on SONiC DuT. Further, we can access gnmi_get from ptfdocker inside pytest to verify gnmi server streaming data successfully or not.
This commit is contained in:
parent
c9a14f71d0
commit
24f684da68
@ -139,6 +139,13 @@ RUN ln -s /usr/bin/tcpdump /usr/sbin/tcpdump
|
||||
|
||||
RUN mkdir -p /var/log/supervisor
|
||||
|
||||
# Install Python-based GNMI client
|
||||
RUN git clone https://github.com/lguohan/gnxi.git \
|
||||
&& cd gnxi \
|
||||
&& git checkout d01b36e \
|
||||
&& cd gnmi_cli_py \
|
||||
&& pip install -r requirements.txt
|
||||
|
||||
EXPOSE 22 8009
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|
||||
|
Loading…
Reference in New Issue
Block a user