File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
npu/broadcom/BCM56850/saivs Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ RUN apt-get -o Acquire::Check-Valid-Until=false update \
5252 && rm -rf /var/lib/apt/lists/*
5353
5454# Temporary workaround fix until the OCP community fixes the sai_adapter.py generation
55- ENV SAI_ADAPTER_PY /usr/local/lib/python3.11/dist-packages/saithrift-0.9-py3.11.egg/sai_thrift/ sai_adapter.py
56- RUN sed -i 's/(=object_type)/(s32=object_type)/g' ${SAI_ADAPTER_PY} \
55+ RUN SAI_ADAPTER_PY=$(find / -name sai_adapter.py 2>/dev/null | head -n 1) \
56+ && sed -i 's/(=object_type)/(s32=object_type)/g' ${SAI_ADAPTER_PY} \
5757 && sed -i 's/attr\.value\.$/attr.value.s32/' ${SAI_ADAPTER_PY}
5858
5959# Install PTF dependencies
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ RUN apt-get -o Acquire::Check-Valid-Until=false update \
3232 && rm -rf /var/lib/apt/lists/*
3333
3434# Temporary workaround fix until the OCP community fixes the sai_adapter.py generation
35- ENV SAI_ADAPTER_PY /usr/local/lib/python3.11/dist-packages/saithrift-0.9-py3.11.egg/sai_thrift/ sai_adapter.py
36- RUN sed -i 's/(=object_type)/(s32=object_type)/g' ${SAI_ADAPTER_PY} \
35+ RUN SAI_ADAPTER_PY=$(find / -name sai_adapter.py 2>/dev/null | head -n 1) \
36+ && sed -i 's/(=object_type)/(s32=object_type)/g' ${SAI_ADAPTER_PY} \
3737 && sed -i 's/attr\.value\.$/attr.value.s32/' ${SAI_ADAPTER_PY}
3838
3939# Install PTF dependencies
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ RUN git clone https://github.com/sonic-net/sonic-sairedis.git \
7070 && mv /sai/tests /sai/sonic-sairedis/
7171
7272# Temporary workaround fix until the OCP community fixes the sai_adapter.py generation
73- ENV SAI_ADAPTER_PY /usr/local/lib/python3.11/dist-packages/saithrift-0.9-py3.11.egg/sai_thrift/ sai_adapter.py
74- RUN sed -i 's/(=object_type)/(s32=object_type)/g' ${SAI_ADAPTER_PY} \
73+ RUN SAI_ADAPTER_PY=$(find / -name sai_adapter.py 2>/dev/null | head -n 1) \
74+ && sed -i 's/(=object_type)/(s32=object_type)/g' ${SAI_ADAPTER_PY} \
7575 && sed -i 's/attr\.value\.$/attr.value.s32/' ${SAI_ADAPTER_PY}
7676
7777# Build SAI attributes metadata JSON generator and generate /etc/sai/sai.json
You can’t perform that action at this time.
0 commit comments