Skip to content

Commit ebdfb4b

Browse files
authored
Enable DPB dependency check using YANG model in VS container (#45) (#4990)
Added required packages to enabled YANG dependency check for Dynamic Port Breakout in VS container. [sonic-utilities PR #766](sonic-net/sonic-utilities#766) has a dependency on it. Getting error like the following without this fix: `ImportError: No module named yang - required module not found` Signed-off-by: Sangita Maity <[email protected]>
1 parent 1870c18 commit ebdfb4b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

platform/vs/docker-sonic-vs.mk

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ $(DOCKER_SONIC_VS)_DEPENDS += $(SWSS) \
77
$(PYTHON_SWSSCOMMON) \
88
$(LIBTEAMDCTL) \
99
$(LIBTEAM_UTILS) \
10-
$(SONIC_DEVICE_DATA)
10+
$(SONIC_DEVICE_DATA) \
11+
$(LIBYANG) \
12+
$(LIBYANG_CPP) \
13+
$(LIBYANG_PY2)
1114

1215
$(DOCKER_SONIC_VS)_PYTHON_DEBS += $(SONIC_UTILS)
1316

platform/vs/docker-sonic-vs/Dockerfile.j2

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ RUN pip install crontab
6060
# Install dependencies for Dynamic Port Breakout
6161
RUN pip install xmltodict==0.12.0
6262
RUN pip install jsondiff==1.2.0
63+
RUN pip install ijson==2.6.1
6364

6465
{% if docker_sonic_vs_debs.strip() -%}
6566
# Copy locally-built Debian package dependencies

0 commit comments

Comments
 (0)